Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp601198ybg; Thu, 19 Mar 2020 05:34:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vutDbJQyzU6D+mPapRTqnqvVklNuebCMtPOg1J1jsl58YVD0xJp8jUH8+wijBgZV+n4LI9X X-Received: by 2002:a05:6830:1441:: with SMTP id w1mr2200605otp.58.1584621287330; Thu, 19 Mar 2020 05:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584621287; cv=none; d=google.com; s=arc-20160816; b=Dk4EIqlX4qRcS29QHm/4SX5Knf9dkCeFnYBp5uQSTf/oH25fjtaznHVJRShwb0FIET rRENSA2fV7MNC1WYopWPlGa8xZvk3IzkEqo0r6Qudqa2t+LuxYpphHwr6pdYNZL1QrZY ++HFShxrQzBGWx4LWzDKUS7ofbX1hyqGxGyj+CBI7P/KBROkHXvBlh481AybftKDxvEl +ihUP1cSwIZBMYowZfEU9LJvBWXX3ix+2dqOTtCnYFxUOKc1Pxh7cPsNcdDq4/vU317U waZ/UTaaF/dE8fjzdtbOt8+zcxiD3Qcp1dTSpivN3J/0KwtDtVs2/qRlPNtdwhk0WmTF 3ajA== 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=zFIaCcNQAYyffMCNtiQmta82JV42CBHOBsTeVmZDO8U=; b=Ez0h2MH1eS5Dh9ls76M64ipIvtiYrIFDQTfkKS8AqRj7jHNwf6yr61Bc9o+CWvjWKk ccRnpPF5pJXSfV+wGM1TQx4mVd9I91HKmVQYZjS5+V0s+mwhxFsDtD0RqlgDBv/KPP5X euNDwvbApyCSFAwhjGeeNXPbEZLYoeWuopLLrEx7AN7SP8/FAigNT3KOoMGnMhr5FuEI 3v+Tefn8Ks7Tyl7oVkmzAn3FyoViJw4EXoswZobPeTAX2iH/YPNm9oOxnoSIzklxiZYD +Apmp3XEpniwvo4stbBjva81gEhXpBEsvDiVM8uEB1m/iRxuk1yPQD4X7Gp9E3Fr/GxK mBag== 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 f26si1212839otc.182.2020.03.19.05.34.33; Thu, 19 Mar 2020 05:34:47 -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 S1727032AbgCSMcy (ORCPT + 99 others); Thu, 19 Mar 2020 08:32:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:40646 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726589AbgCSMcy (ORCPT ); Thu, 19 Mar 2020 08:32:54 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 97411AAB8; Thu, 19 Mar 2020 12:32:53 +0000 (UTC) Subject: Re: [PATCH v2 2/2] mm/page_alloc: integrate classzone_idx and high_zoneidx To: js1304@gmail.com, Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Johannes Weiner , Michal Hocko , Minchan Kim , Mel Gorman , kernel-team@lge.com, Ye Xiaolong , Joonsoo Kim References: <1584502378-12609-1-git-send-email-iamjoonsoo.kim@lge.com> <1584502378-12609-3-git-send-email-iamjoonsoo.kim@lge.com> From: Vlastimil Babka Message-ID: <99196b17-24fb-8990-2d21-c459d2321747@suse.cz> Date: Thu, 19 Mar 2020 13:32:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <1584502378-12609-3-git-send-email-iamjoonsoo.kim@lge.com> 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 3/18/20 4:32 AM, js1304@gmail.com wrote: > From: Joonsoo Kim > > classzone_idx is just different name for high_zoneidx now. > So, integrate them and add some comment to struct alloc_context > in order to reduce future confusion about the meaning of this variable. > > In addition to integration, this patch also renames high_zoneidx > to highest_zoneidx since it represents more precise meaning. 2 years ago I suggested max_zone_idx. Not insisting, but perhaps max_zoneidx would simply be shorter than highest_zoneidx, while saying the same thing? Also I wonder if we still need the accessor ac_classzone_idx() (before rename), or just replace it with ac->highest_zoneidx (or whatever the final name is) instead of renaming it? Thanks! Vlastimil