Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4345926ybl; Tue, 20 Aug 2019 10:29:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxO4n+UaG11adsx7YxNjMlROv2R37jj8iRBOt/q3WgBlhUNly1TP39vryATxZC9Mf1kcRI X-Received: by 2002:a62:640e:: with SMTP id y14mr30488405pfb.222.1566322145303; Tue, 20 Aug 2019 10:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566322145; cv=none; d=google.com; s=arc-20160816; b=qf/r33Sp9EChNaGzOqLnvzjAxZxtDnBEbJgq9tv07Sz3tIt8J/oDz9HaMI3ZVgkb/P SPdGMOOnwM9eBehWYRFucXQLsS2PtFZltKf9H2W1+k1TRmUk+XHrGONuhi7vSBbZV38T pxvAKexXDLExPAbOcgR2QCC/Jr0qifLdpFaYWeM4cc6j+JiCrzxFaI9+uRHQuuTpt8iP fuDRbhdqX6/3B6/Jyk4hdG3IycvK7yW98zDKwpd76mIdmfJNIaoDE/wdfl3mISPe/PEZ q7ZTAf6i6D/c75ir29efn795LAxV6r+/6wSL9Q3BrjCEl4X1jFx+HK4RiWwY7JGRHFmE TrPw== 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:message-id:subject:cc :to:from:date:dkim-signature; bh=PeDiA2PJoiVzWMd8z0SSPQVZ1TUnorKfJ5pi4QQ5XHA=; b=gA+bidLdtWpkEtCzNgWHrO35KzzPqlzFIDJCpAl1HbfO0dxaR1mLoBX/Qy4zB545uI /CytjKdYmkCgppdPAo7aNjwZyanMLFgpdcSsY6VckfHwAk2Nzz3ygQxhySaBYXrFJgkW rp1Qmtt/ywlk91x4yhSTspXwhBUl5uwVoIH31Ygq2zda8uD3V2IPr42hH9BeNBPGxtfh PPju8IuixhoHffwIFukJX1tjywvvNApVmnq788LBxkUEAwHtRm227w6xL0nW0OnjHKWP gXL/wH0kfUBiDCcduZHizLKFabzqUZVimG/ALIGnf8AoRWkg2Hy7EHK0JNIH1JCl6onL nhnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NLMiPJMw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b14si12560530pgi.587.2019.08.20.10.28.49; Tue, 20 Aug 2019 10:29:05 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NLMiPJMw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730720AbfHTR0d (ORCPT + 99 others); Tue, 20 Aug 2019 13:26:33 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:57626 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725983AbfHTR0d (ORCPT ); Tue, 20 Aug 2019 13:26:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PeDiA2PJoiVzWMd8z0SSPQVZ1TUnorKfJ5pi4QQ5XHA=; b=NLMiPJMwoo1sgK07WC6S4AT3n BSQEFtSik6WtzPk16YY7ml01GFKIZV13XUbnlKXIIZOrRox6n8FoDRmZ4+pRNV2+XJ3aEYWthRAic SvIoNHa5ZX8UjUNg7osTsC/e9VSPqeInLNYi3cVTGuGuKoUNN66X9aiaPmreE2J0tt8IpvIzEBoDN NtZApH+De7jPQIDaS/XGjsbErclA9QIpbBUuSDl22z/6DhKrzF86czfskWc18jZYi7IYOTpNcEO1u T1G4dvI1Ft4obl2l7Z2WYUKRFKmSiDTMwAimJANn1d2YHqfHmkESiQlNJyknqJrq66WYAHyYrSPdk 0X4MV+EQg==; Received: from willy by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1i07tt-0004yW-EF; Tue, 20 Aug 2019 17:26:29 +0000 Date: Tue, 20 Aug 2019 10:26:29 -0700 From: Matthew Wilcox To: Vlastimil Babka Cc: 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: <20190820172629.GB4949@bombadil.infradead.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2c5cdffd-f405-23b8-98f5-37b95ca9b027@suse.cz> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.