From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6AD8CA9EB6 for ; Wed, 23 Oct 2019 08:26:56 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 69D0B21906 for ; Wed, 23 Oct 2019 08:26:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="EORlYYo8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 69D0B21906 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 022A76B0003; Wed, 23 Oct 2019 04:26:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EED2A6B0006; Wed, 23 Oct 2019 04:26:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DB4906B0007; Wed, 23 Oct 2019 04:26:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0236.hostedemail.com [216.40.44.236]) by kanga.kvack.org (Postfix) with ESMTP id B43606B0003 for ; Wed, 23 Oct 2019 04:26:55 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id 3204D181AEF3E for ; Wed, 23 Oct 2019 08:26:55 +0000 (UTC) X-FDA: 76074368790.01.spoon81_1f43ff15c033f X-HE-Tag: spoon81_1f43ff15c033f X-Filterd-Recvd-Size: 4380 Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by imf25.hostedemail.com (Postfix) with ESMTP for ; Wed, 23 Oct 2019 08:26:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571819214; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HaclBkUySXchpujJDOKDQ24Kar8EqBHEiLvQYvykVcM=; b=EORlYYo87t4JjNuJly3hbZKGr0itcU4suzuCK9RWE99C/RmIPw1xSkwLaioj7xCtfpQkRB VgMCczPohiEPbepcxwijzY20nO7y370J6PDC3R1aGEywMwkr9G8oP1mNBfCNG8GEdD9kRS ZvNgvDO0303xXY+dwlifxj+l6VWVeqU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-364-LuY7b88DMPqLlrFS4Rg2Ag-1; Wed, 23 Oct 2019 04:26:50 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EE743100550E; Wed, 23 Oct 2019 08:26:47 +0000 (UTC) Received: from [10.36.117.79] (ovpn-117-79.ams2.redhat.com [10.36.117.79]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9B8CE19C78; Wed, 23 Oct 2019 08:26:33 +0000 (UTC) Subject: Re: [PATCH v12 2/6] mm: Use zone and order instead of free area in free_list manipulators To: Alexander Duyck , kvm@vger.kernel.org, mst@redhat.com, linux-kernel@vger.kernel.org, willy@infradead.org, mhocko@kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, mgorman@techsingularity.net, vbabka@suse.cz Cc: yang.zhang.wz@gmail.com, nitesh@redhat.com, konrad.wilk@oracle.com, pagupta@redhat.com, riel@surriel.com, lcapitulino@redhat.com, dave.hansen@intel.com, wei.w.wang@intel.com, aarcange@redhat.com, pbonzini@redhat.com, dan.j.williams@intel.com, alexander.h.duyck@linux.intel.com, osalvador@suse.de References: <20191022221223.17338.5860.stgit@localhost.localdomain> <20191022222805.17338.3243.stgit@localhost.localdomain> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: Date: Wed, 23 Oct 2019 10:26:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20191022222805.17338.3243.stgit@localhost.localdomain> Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-MC-Unique: LuY7b88DMPqLlrFS4Rg2Ag-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 23.10.19 00:28, Alexander Duyck wrote: > From: Alexander Duyck >=20 > In order to enable the use of the zone from the list manipulator function= s > I will need access to the zone pointer. As it turns out most of the > accessors were always just being directly passed &zone->free_area[order] > anyway so it would make sense to just fold that into the function itself > and pass the zone and order as arguments instead of the free area. >=20 > In order to be able to reference the zone we need to move the declaration > of the functions down so that we have the zone defined before we define t= he > list manipulation functions. Since the functions are only used in the fil= e > mm/page_alloc.c we can just move them there to reduce noise in the header= . >=20 > Reviewed-by: Dan Williams > Reviewed-by: David Hildenbrand > Reviewed-by: Pankaj Gupta > Signed-off-by: Alexander Duyck > --- > include/linux/mmzone.h | 32 ----------------------- > mm/page_alloc.c | 67 +++++++++++++++++++++++++++++++++++------= ------- > 2 files changed, 49 insertions(+), 50 deletions(-) Did you see https://lore.kernel.org/lkml/20191001152928.27008.8178.stgit@localhost.loca= ldomain/T/#m4d2bc2f37bd7bdc3ae35c4f197905c275d0ad2f9 this time? And the difference to the old patch is only an empty line. --=20 Thanks, David / dhildenb