Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp466086pxx; Thu, 29 Oct 2020 06:54:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCYBsPXJFYfufx+l/9gyI6RPSnOOmptqE7xpTrxFoIRRNu/HYhdC1Klylic7yl0d5efXcl X-Received: by 2002:a17:906:b197:: with SMTP id w23mr4490437ejy.166.1603979654520; Thu, 29 Oct 2020 06:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603979654; cv=none; d=google.com; s=arc-20160816; b=HslaXh/qEAuUYPwPOhwWqpNjXwGvgdPI5kdB35Md7ccpaNFnEFTn/39NgBcbs8wwBc fxUfxAYQOQLGZjUU9th9htl1wU30ROUoQEPUQ+KCo22r3auTDO943y17OHByvS3DWvnl anDWzEZBHKNDjHJOPZWaiWarNg0EEZEyOcVdL+47KmkhrrwyMxSUydWg22aFpCJPJcVH aoDJEMFvwSpJXrfqryo2x+l+NPIt6unr6JNykiJgJCUrrbQEwxVnZmqWP0RQNjyCLUm2 bEjQwY3939Atkec9PUWOVSmXrHOaGPFqPDKvvONXXT6219i89WB2gi50jJmD82X8ar33 73Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5MfKe3DP7slEVa5weBChPOdwKwukAel2TnvkgswMss4=; b=cf6Lp3VwpIQts+/+V0WFx6A+y8FF0kkpdGeoyr1PmxDu6FMHHAqyKG4cNxlmBcMsA3 eKNhfRaMxSvfRX4ndG8AHyh3jCWy492h8vGbcp4nBU62Vv+m0PESokwgZT7Yjr6Fu303 hwwSri7XUHROFoXtOQ3Wq6kQ79sWGKdthEB3aIhiiY24WQ+ZW/XzZNbpnPSRACHND7t2 n5yEPsAsKTOEY9ole1eh+n+BDppLMJvzO/6oUTlUCwukA8OezpkZJmpORdFZhLjneUyo oLs23WmTOC6+fFkgnSrheaDff/Ja1lX6ovWUBX0ILos0Sx4df1aj460j4UxVSn598GJA aXVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=gcRq1IeI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si1912780ejr.128.2020.10.29.06.53.51; Thu, 29 Oct 2020 06:54:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=gcRq1IeI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727357AbgJ2Nwi (ORCPT + 99 others); Thu, 29 Oct 2020 09:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbgJ2Nwh (ORCPT ); Thu, 29 Oct 2020 09:52:37 -0400 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B275C0613CF for ; Thu, 29 Oct 2020 06:52:37 -0700 (PDT) Received: by mail-il1-x142.google.com with SMTP id n5so3062336ile.7 for ; Thu, 29 Oct 2020 06:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=5MfKe3DP7slEVa5weBChPOdwKwukAel2TnvkgswMss4=; b=gcRq1IeIkaEAkPFS5WKi2EPbUk5OEhwyFRIn/uaI+vOq8JeipGnDYtfvu5hPSgvNMA +bd5ninFYWFlPInI6dcTy24RZXWatQtR7EajDSee3Gw76Ru+sshSeR7uDtaaOpAnzqht M+HgpBZJiUIUGmXcDxHju67QR5p3CRkGlQMQdbKGZLG0TkOfScdJMYnEufC4/tEPY/4K 36jdPDiqUEOkLh48UffqE2EAsI0wugobZ32NeGkq7pT7eOzUNkCemRWkTzOHU0CRlptw IR7EEi5NU9fJ3XOP0eUD7clmNTAYd5R+/cBVDyhT6Xw0+1wkeWcHtkoC1f8c7KJBf+0e Kc1g== 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:references :mime-version:content-disposition:in-reply-to; bh=5MfKe3DP7slEVa5weBChPOdwKwukAel2TnvkgswMss4=; b=pw2M5VMemfsImGBx5ghfL43TsfuhcWcUdb7UqcdaSPnZFnbKD8DEj2qs3lV4QxXX8k xwQDsXX9NvkaAtTVRFmWsFNFg/4WamEEXAaa3V3b6c9BS4a0jLoO/63QcKRH953toQJQ 2sbxBD0YJ5MN86cHbEH0NBx7G+7HUEliVWXLJKPocuQnzKp/eAurXM0VMfPoCRnuatVi 85mWrhNscTDcSO7irifXI7pRpygLTl15hkhX4c1veaptMEbuZkJTVV+nmJldv8Va/S9T nZwC8btrXkVZYtQ5YL9CRSFNGbdeowQ80vQWvNrdHaphP4GVlS0h8upsualRXdbKxqo2 /S5g== X-Gm-Message-State: AOAM532ytw+SqUdqMSVp2lgNOi8Qvqtjp6vW6Mkjj7eZlpb/0fQQhVLl w8HEDZuhRNuHoKOa3s7WMgT38w== X-Received: by 2002:a92:aa01:: with SMTP id j1mr3469159ili.301.1603979556570; Thu, 29 Oct 2020 06:52:36 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:536c]) by smtp.gmail.com with ESMTPSA id m66sm3217846ill.69.2020.10.29.06.52.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 06:52:35 -0700 (PDT) Date: Thu, 29 Oct 2020 09:50:47 -0400 From: Johannes Weiner To: Alex Shi Cc: akpm@linux-foundation.org, mgorman@techsingularity.net, tj@kernel.org, hughd@google.com, khlebnikov@yandex-team.ru, daniel.m.jordan@oracle.com, willy@infradead.org, lkp@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, shakeelb@google.com, iamjoonsoo.kim@lge.com, richard.weiyang@gmail.com, kirill@shutemov.name, alexander.duyck@gmail.com, rong.a.chen@intel.com, mhocko@suse.com, vdavydov.dev@gmail.com, shy828301@gmail.com Subject: Re: [PATCH v20 04/20] mm/thp: use head for head page in lru_add_page_tail Message-ID: <20201029135047.GE599825@cmpxchg.org> References: <1603968305-8026-1-git-send-email-alex.shi@linux.alibaba.com> <1603968305-8026-5-git-send-email-alex.shi@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1603968305-8026-5-git-send-email-alex.shi@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 29, 2020 at 06:44:49PM +0800, Alex Shi wrote: > Since the first parameter is only used by head page, it's better to make > it explicit. > > Signed-off-by: Alex Shi > Reviewed-by: Kirill A. Shutemov > Acked-by: Hugh Dickins > Cc: Andrew Morton > Cc: Johannes Weiner > Cc: Matthew Wilcox > Cc: Hugh Dickins > Cc: linux-mm@kvack.org > Cc: linux-kernel@vger.kernel.org > --- > mm/huge_memory.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/mm/huge_memory.c b/mm/huge_memory.c > index 038db815ebba..93c0b73eb8c6 100644 > --- a/mm/huge_memory.c > +++ b/mm/huge_memory.c > @@ -2346,19 +2346,19 @@ static void remap_page(struct page *page, unsigned int nr) > } > } > > -static void lru_add_page_tail(struct page *page, struct page *page_tail, > +static void lru_add_page_tail(struct page *head, struct page *page_tail, It may be better to pick either head and tail or page_head and page_tail ?