Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1000559ybl; Wed, 14 Aug 2019 09:10:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEQrEdREPjL2D8b/SDg/q4gF9iLQjjGXufXptgLwk+GZP5/sl26uOcwovm6rVuDd0uMx/U X-Received: by 2002:a17:902:8f90:: with SMTP id z16mr200478plo.138.1565799038109; Wed, 14 Aug 2019 09:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565799038; cv=none; d=google.com; s=arc-20160816; b=Cd+1oxAzAYvZvUxBHVrOQGUGKlbN3CTGuvsb8fRNwycLq7pCgCQeq5YgrZvRJkU502 A5I0ldtpfPygkGTQNy3Xx/G8t2wQJ/FvRvtfS/RDHCd4eVQgChw5ZsHMGk0vm/1notRQ C4vwYOyevoaOl9EuqbhTDQfqu39NDGD6Ju4fe+DP0JKYwozxxKWV7l7VA4+IKmLMQ8rL Q7l3Pm52i+hMIKBglyzfHVsmQhhwEYYVZp9ybbrtTvPPKn8DugWBoJ2+q62g7/l5bS2P TFe6K76EocedtQkvIKa25qn1IBlD7vwGQNlM+KJYMxNjqUqkbhF0CXDoE8U4baBur8KP R2TA== 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:dkim-signature; bh=H2U3tCMRw+IrarDDMVIjTPYayb14uQntySFIVIZlP+g=; b=PmFfNxyYIOGuu4CO68U9oMwWrw18vyYZBbLjEo86uauLHpwTyoE8Uve2XsTBFO34r0 XkmflFL2npX7hiVbG7MQ2BRnLWLeo0/vIIFqi0xx1xaVSIu9Gd1I9QfcxfkYaTj/trsh pHj5piehzMUAVl+pg0YEpaml/j9jl1OOzdRiWcKVVHFNruK++FVrqNYpRP5kx94q0GNN 1t/KKLScCB/wGGSKl9OtRFPWFugE8sK/bD+mPm1nrnR5bPiH+av/0krGePyl+Qg4kdS2 Z1PbpHUVldgOEfhNYg4aGiByDZ4wDUw6RjN6ANRqbblPmRTkfmIwBa6q27XauMXvWzw5 wxXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cmBEKvAs; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r16si84643pgv.466.2019.08.14.09.10.22; Wed, 14 Aug 2019 09:10:38 -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=pass header.i=@gmail.com header.s=20161025 header.b=cmBEKvAs; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728355AbfHNQJ2 (ORCPT + 99 others); Wed, 14 Aug 2019 12:09:28 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:46126 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728107AbfHNQJ1 (ORCPT ); Wed, 14 Aug 2019 12:09:27 -0400 Received: by mail-ed1-f67.google.com with SMTP id z51so22934043edz.13 for ; Wed, 14 Aug 2019 09:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=H2U3tCMRw+IrarDDMVIjTPYayb14uQntySFIVIZlP+g=; b=cmBEKvAs4xYGs8yaTgaRBA2XTQfiEsuiKCcB8B37zwblaAew+JPAwUGqSniB5dfkTt FQCSy0lFtLfY6HrdTG86JfuNBJmsZWda/W4+re+hc+5AJABZfRyZnsZtSBiPJz3rlta4 sn2crMRxKGBFCSOgOE+Ul4pNYaV1ThyXMOvRk/t8frSbV3OuGHRJhj/mWHZeEag9Xfft S0nLfbCm6/PkwNcRH+RXgwTd2YQtbi21KsLI+7t/Jzf/dyaiCX9vpLIPGeS2cvHPwFPd EEh37HNI8WkTVb7c+Cl0Q4+YlDXbzbrMa6xoJjB5H0qnaypokevUjYH/XHTkOo/OP0AB pn7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=H2U3tCMRw+IrarDDMVIjTPYayb14uQntySFIVIZlP+g=; b=bhjtZhXWTuQ7/09+Eq8LqaoJHQ3WOYIcb1ftHSFN2+eUBFkHjSgYhCqXNt1LPl/lSu CoDOWOrFApTj1tstFjD152ODAqGMXUzP2LUAODRSEZcyM0SVWqInGPoRjnu6XWSnzzw8 3vUIzxyEccDJwJUz4TMHyYEEpzYBBMvH3Gg7DiSgYlOH1oHcyMyNuf/pgRsmxA1bPppV EGaGrKX82RDeJfEC1kOhQ18Q5/ACNkcBbWLkBfON2PWrwFPY/mdUWn/5dL0Tk+5QGxG9 YpZwDOE72G1lIzXDj0v14cu6NYWFW4+ZSI/iuZKDN8RxF4d74OSVZKnK1WL6gpw6gHRP touA== X-Gm-Message-State: APjAAAXgYh9qSczQzMb5+qjBifEO4Wr7/v+e+QEogFjJmEnb3eaTMtgx vngXO76pQgPCI4XrsPfp+0o= X-Received: by 2002:a17:907:2091:: with SMTP id pv17mr308462ejb.157.1565798965848; Wed, 14 Aug 2019 09:09:25 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id y48sm40007edc.66.2019.08.14.09.09.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Aug 2019 09:09:24 -0700 (PDT) Date: Wed, 14 Aug 2019 16:09:24 +0000 From: Wei Yang 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: <20190814160924.3iauvzsbukw4ghjv@master> 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> 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: NeoMutt/20170113 (1.7.2) 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 :) Seems it will touch many code ... -- Wei Yang Help you, Help me