Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp182884ybl; Tue, 20 Aug 2019 17:59:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAZSRHHVvXRxPCxXANIv01kyfkdaLoTkwE3GMVA6lHgYPM+VcAHyCDBfMlNpZaHRVpN3f5 X-Received: by 2002:a65:690b:: with SMTP id s11mr23148260pgq.10.1566349155485; Tue, 20 Aug 2019 17:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566349155; cv=none; d=google.com; s=arc-20160816; b=i9b8YNnLLUtgxEUDOcxhNsKxSfPWnFcPMO/atWKwAVpERzLW6sOOxGlIuBA5HE/qxb SXvwyWwY7EiCOF1YEe9K+jS/6X2SC+BhoPLslopzv2bLYztO+bamAwxvyRRXIYP5WTZD ENbANh2+6XboXW06pDMhq4qUUz2i3Sn66Xpf3G6GZa8TVmlciw6M2CooGm01t0RsVZAR tKZxpgsEWrdSHHyctj6ZSCCCJAn3zeEB9WXPhH9nX3HovspBaoMCBXptih/7pyYeZkBf Tv8nsEadFcoC0mi64MjRl1khQBjkCvmsGUykflfKvrb9becSV4WKerxxytcklcqQ0H24 Nu1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=FB15oi45VDD97sRko0bJNZhZyEMhCcLY5ChNWr0B/W0=; b=0MKMyv7WsqO7YnjIeGvn3M7wuwGWChEVmN/YZQtQ0IdFxMIYlGl6ti+eEunZhm3F8k mDPRldapTg6CyCK6fLNWyfW7Z2mS61VNRgmlpglY63N6gZQuwgZuF18H42VPCkDpWv5R Q+dUqqQmEGXGqIFU3vgCE+HpZt4wLRwTJGMIkaOCSf6cmtVSWiJIBHPlVVUT8EbpUtk3 MGPUC2KRUQTP3k9bOH0+1RoPTC1BjIQrK+vQZSX30gTIbnRFE2LBW4vbxRS6sa+Kj+l2 141U3vjATkipr3jplWu2eHiCVXmO8Xy6Dzfagqb19DJeVgeeV2TGRwDvS1Zxd+cBZyNg 7EXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o7si12921420pgv.247.2019.08.20.17.59.00; Tue, 20 Aug 2019 17:59:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726545AbfHUAxA (ORCPT + 99 others); Tue, 20 Aug 2019 20:53:00 -0400 Received: from mga09.intel.com ([134.134.136.24]:36686 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726254AbfHUAxA (ORCPT ); Tue, 20 Aug 2019 20:53:00 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Aug 2019 17:52:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,410,1559545200"; d="scan'208";a="178350826" Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by fmsmga008.fm.intel.com with ESMTP; 20 Aug 2019 17:52:57 -0700 Date: Wed, 21 Aug 2019 08:52:34 +0800 From: Wei Yang To: Matthew Wilcox Cc: Vlastimil Babka , Wei Yang , Christoph Hellwig , akpm@linux-foundation.org, mgorman@techsingularity.net, osalvador@suse.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] mm/mmap.c: extract __vma_unlink_list as counter part for __vma_link_list Message-ID: <20190821005234.GA5540@richard> Reply-To: Wei Yang References: <20190814021755.1977-1-richardw.yang@linux.intel.com> <20190814021755.1977-3-richardw.yang@linux.intel.com> <20190814051611.GA1958@infradead.org> <20190814065703.GA6433@richard> <2c5cdffd-f405-23b8-98f5-37b95ca9b027@suse.cz> <20190820172629.GB4949@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190820172629.GB4949@bombadil.infradead.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 20, 2019 at 10:26:29AM -0700, Matthew Wilcox wrote: >On Wed, Aug 14, 2019 at 11:19:37AM +0200, Vlastimil Babka wrote: >> On 8/14/19 8:57 AM, Wei Yang wrote: >> > On Tue, Aug 13, 2019 at 10:16:11PM -0700, Christoph Hellwig wrote: >> >>Btw, is there any good reason we don't use a list_head for vma linkage? >> > >> > Not sure, maybe there is some historical reason? >> >> Seems it was single-linked until 2010 commit 297c5eee3724 ("mm: make the vma >> list be doubly linked") and I guess it was just simpler to add the vm_prev link. >> >> Conversion to list_head might be an interesting project for some "advanced >> beginner" in the kernel :) > >I'm working to get rid of vm_prev and vm_next, so it would probably be >wasted effort. You mean replace it with list_head? -- Wei Yang Help you, Help me