Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp559174ybl; Wed, 14 Aug 2019 02:21:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxM/+yqo0D9FuEaaK/1Z4Sq+3RcAW5MCLklM01qAVCiFHC+JRPZnrTBVR2z7f3sM6mLnijE X-Received: by 2002:a63:b11:: with SMTP id 17mr36941203pgl.283.1565774469364; Wed, 14 Aug 2019 02:21:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565774469; cv=none; d=google.com; s=arc-20160816; b=pFhrF2JbvjRSLwOyTyVvFCY+PQzWStZ97PlQdMYCRf6cHm4bk9DwwEnP45MzkOqwFa nDGldxlyRARnT1Z6zNmhoOz7yIaA9XKrqdyrTuMvJoUOjI0AgecoGzgyEBFACwIZjg3z PBufqsIjixDURkdx4ntWHFNwPohldDLIVhaWT9CZFcEJ0+mdOKGBr4eNY9jqpoVAbD26 fl4YWqfTdz9mEA49ZGcrc2biqs/WEWLkk0k+/4rum/m56yMm68CL0yNv8JcZ78eZDQG+ xtP3dpoDhytGfy1ItYFiUIhwiPjmzSCg/A5yDqBciuud+Ckpjzh22X3S1n5QcbKiLa8K LVEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=+hdSMoyYNYFiw+w1uARZLZXSYNVTcrRybAKA1zXXSgs=; b=aaGvRwYzPIKQiK+C5nFcxmdCrjrF2mhV0XkR5BYuN1JHfP9OXm6+rexOOS5mo4zdD2 0m/QLPCkPtQ+g0hmIdBwu3J4/09jEba923IvtEeFNm0S2kVHynO6hHmHcPunSFeng7oC wkiWZFi3mKHoLbzQ13fos0zI8mKI7VHDKO9CmjVptsys1HAlGQDSGzQYK58Go3B2XV38 E1qTpJ/VwuBe6jJtwWMyz1Jo3orZ+CFx4Wm+kwimOoE3gfY7Gs0sGz5cKdVRr6KFx7sI izjb1hJakE9S29Wno8GAQa45ZO11zxxwLXmRzxKUY/79pQz7g77WgtJB8dJV3fzxLwcB VSBw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j22si9239604pgb.352.2019.08.14.02.20.53; Wed, 14 Aug 2019 02:21:09 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726548AbfHNJTj (ORCPT + 99 others); Wed, 14 Aug 2019 05:19:39 -0400 Received: from mx2.suse.de ([195.135.220.15]:58140 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725928AbfHNJTj (ORCPT ); Wed, 14 Aug 2019 05:19:39 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3965DADAA; Wed, 14 Aug 2019 09:19:38 +0000 (UTC) Subject: Re: [PATCH 3/3] mm/mmap.c: extract __vma_unlink_list as counter part for __vma_link_list To: Wei Yang , Christoph Hellwig Cc: akpm@linux-foundation.org, mgorman@techsingularity.net, osalvador@suse.de, linux-mm@kvack.org, linux-kernel@vger.kernel.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> From: Vlastimil Babka Message-ID: <2c5cdffd-f405-23b8-98f5-37b95ca9b027@suse.cz> Date: Wed, 14 Aug 2019 11:19:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190814065703.GA6433@richard> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 :)