Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp390263ybb; Fri, 20 Mar 2020 00:41:57 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuVrXMgevoTTBqbx2F5zpt4Wu4crUAjYbNumQmGQ4T0JSyLyBvv5WYpKuHwBZ/46VKQmH7E X-Received: by 2002:a05:6830:204c:: with SMTP id f12mr5700673otp.356.1584690117808; Fri, 20 Mar 2020 00:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584690117; cv=none; d=google.com; s=arc-20160816; b=IiUHbP9yml9IwD4yOYvDlsi3qKUhL4klqm/h/p3W/BmilPqSbggppjwO6f80TIh8op Cpm8/Lozr+N3+0sXVRS59yOStALk65TkR6fR8uobmLchRg4fC979sTMQHCAfvfYxQ/jd p4vvM9aOAydeZwiz6jz8lpPaLrb2TePFP0bXTmdrUD41Ix/6E55dwpCGUSLa0X6V/5Fr 4ws3R+JKWUQLfQKBn2z3912uhhAd8kgTJvjWzOSQep5+bE8u6mHgCYFrM2WCYFLty/oR Z8bc87iacQb82r/mv72UFkvkeCBcqx9RttD+duN8qFNG/2R6dGfk5NTovfHktxq9+swy Wz0g== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ku7qwHiv4AZSPNdmRrr8awe0lsh/dLBWtOgrxpXV/hU=; b=e4txfJRdpjNiuRWHLG3UL8XdEpYBovPR9srcZ/hDrN6qGtCMKBEte9wC5mf/zIZS6a PQgQWbB+bTb+yCNiwlBZMUI+PHB3TPQ+ybdX6KMtS1r359Hw7kynaalbKeG/MBnuTG6+ e8AyYvyepDVWjpln3jHGJL14S18YVdfA59UC3csQxO774ZMFb3eQGWVSdB4ACqEGserk 17LuLda+KrRnTn7EkKFPoZsLoH8b/pDOc6Ew7qHF921MXF5DAPOdeyv1h24a09UFjDc1 9or2n5DkDSXo8aeuUlVyBRDDQNEV/hpEolAobQGKZT4Var8awPMySyeqtsDedJR15BvK EQkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qNh+7ws2; 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 o203si2571057oig.1.2020.03.20.00.41.45; Fri, 20 Mar 2020 00:41:57 -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=qNh+7ws2; 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 S1726814AbgCTHkz (ORCPT + 99 others); Fri, 20 Mar 2020 03:40:55 -0400 Received: from mail-qk1-f176.google.com ([209.85.222.176]:44202 "EHLO mail-qk1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726654AbgCTHkz (ORCPT ); Fri, 20 Mar 2020 03:40:55 -0400 Received: by mail-qk1-f176.google.com with SMTP id j4so5876585qkc.11 for ; Fri, 20 Mar 2020 00:40:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ku7qwHiv4AZSPNdmRrr8awe0lsh/dLBWtOgrxpXV/hU=; b=qNh+7ws2t++iS2hHk3cdNGcZPPGDY08PDxqnE3KcRQITjB+5iOC9lnRWwrFj7gLWKT rIvccmkA/Yr/4J1zI8riwhgz76iftHQtg5kdNIcS5AtWT8YEjPhlRtwtLZ4ksRUpHzA7 fZoW3ZTq+Y54sr7zZuiIcsxPBACy1IIla7nBH7nCCWqOksrJRq5th8SuXO+GXPADHpfY ajnCXGQR3oWr35u2FfImbAr9Twfske2do5U28N8WeHD/cxZ8qGH6sv60/mTZrg0X3e4G 2VUm8ltaZsPAgI1zAo15vXiWFfha4bqB1vE8vsCuVTHdQszMLQOzYXlKbccFuriujJCT ddBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ku7qwHiv4AZSPNdmRrr8awe0lsh/dLBWtOgrxpXV/hU=; b=kY8IGJ3H8YkiAjDjAyZYmMadoeZbbOVtNFhFokPuwr1nHqV64pkZoYmKUkCiZ48Du4 WC0F5/IXCIPThB2A6tBJwoyIjiWWbb2j5d04irVLbCyDDqd18VXdPes43KHzCc0PsRwd 5wfpBLaEvTcwuM7jx70WdAz20OrSUDgUYTDev1LA+sddFXIpgeYoKToSBM8/GIBZUtTS y/zD+XRfO5A4DJisxj+M33aXL7XYHKPS28yk9JKfqiOLeoRAozDsL5dEChRbEC5PF7/D DZGVYRjvln1K75YEPNbY4hEZaLSrasCdLegjjxc5rYlJWPViMtPVkSqQcEaWHaTf6ybp x2KQ== X-Gm-Message-State: ANhLgQ1usK/C3sJus8/wG4yvCyIjdFgozKEeq/28Bj86xpZeP1QjvoAs Qfa0pcRPVR+pb5H9KFCsqedxWKD+wvwLwzvjSZI= X-Received: by 2002:a37:546:: with SMTP id 67mr6436299qkf.272.1584690053832; Fri, 20 Mar 2020 00:40:53 -0700 (PDT) MIME-Version: 1.0 References: <1584502378-12609-1-git-send-email-iamjoonsoo.kim@lge.com> <1584502378-12609-3-git-send-email-iamjoonsoo.kim@lge.com> <99196b17-24fb-8990-2d21-c459d2321747@suse.cz> In-Reply-To: <99196b17-24fb-8990-2d21-c459d2321747@suse.cz> From: Joonsoo Kim Date: Fri, 20 Mar 2020 16:40:42 +0900 Message-ID: Subject: Re: [PATCH v2 2/2] mm/page_alloc: integrate classzone_idx and high_zoneidx To: Vlastimil Babka Cc: Andrew Morton , Linux Memory Management List , LKML , Johannes Weiner , Michal Hocko , Minchan Kim , Mel Gorman , kernel-team@lge.com, Ye Xiaolong , Joonsoo Kim Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2020=EB=85=84 3=EC=9B=94 19=EC=9D=BC (=EB=AA=A9) =EC=98=A4=ED=9B=84 9:32, V= lastimil Babka =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > 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? I think that highest_zoneidx looks more familiar than max_zoneidx since it is previously high_zoneidx. It would cause less confusion. > Also I wonder if we still need the accessor ac_classzone_idx() (before re= name), > or just replace it with ac->highest_zoneidx (or whatever the final name i= s) > instead of renaming it? Okay. Looks like we don't need the accessor. I will use open-code. Thanks.