Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3951813rwb; Sun, 30 Jul 2023 21:06:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlHqqsdo/ClWyn5WINUmeYFJMpRObxkAxl7CGggLhiqsqAxTqpCpBpsfdXczyMfojORn4nrF X-Received: by 2002:a17:906:11e:b0:99b:efd3:3ddb with SMTP id 30-20020a170906011e00b0099befd33ddbmr5745016eje.43.1690776418934; Sun, 30 Jul 2023 21:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690776418; cv=none; d=google.com; s=arc-20160816; b=n7IqSt2MkKDSo1Z1gbKTX4AUxqICaUog51bEE/14MBvaETrrdg8zfTgHv2WvfokbTk jFRojUOq0d3dbGPMOqAYNSIMQjojhbQCg4e9edkXrLITkr6hw1/9pnfbUWMO8NHDw1Fq FdUXE+h3ujCy413TWT1c8R9kh5pw/tRhtAIrkdDTbqzHh713iCagKnDYBYR5YOUO5SAQ p+MDaC/lua6EaLKA3I85Sn1xk4wbz6mm74vPMJ/cBXQU303uh4+y5/fBa2kxJH6VDJG3 YNwe/sEAfcWY8njJ/l7tHeNrqFE8VXIastjSZu4Q6LGLcH0jMlq1p08r6TxHmceLpenU rFlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:subject:user-agent:mime-version:date:message-id; bh=Bai6/CmUJoCp4N4wsJxtVUuPpf4IyEqmZPoSrGpuo/g=; fh=ayEkT2369U6fCI6ylNu/hN2c1iy11i90FDW5doFRN1Q=; b=W6MK+ZCZfS9uUBh6Yyb8KNq1YUItsu5tUgK2wgvCNrecY66iGwo+VXZGc0nbEEf+eF wQewANW7xPgXXG2/UHBQ42Sd2DIo5vQ3/vQe7jtSnJ+Ox9N+DHjswefIKVFO/FiFZKth CaaJE/e7IFPXSiTqIKR9qufxrcQkZgkX5hdDM2iKkhFBFn8hqirAvWM3gJaRw43a5LmD 3hi7bJYIce23wAjrZqhz1wwcW/CkCT2ExPFBzY2NApjfzGrRUHkD3Q8ZwSaWv0tJazTa TfPG4L7Y+tce5RLh6plshyY+y5M3KmbjA63rLwC43lGBjqaB+awumcX89jJBpXWjSUe3 K+Vw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u25-20020a170906069900b0099307a5a755si1886099ejb.45.2023.07.30.21.06.34; Sun, 30 Jul 2023 21:06:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229888AbjGaDNE (ORCPT + 99 others); Sun, 30 Jul 2023 23:13:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229889AbjGaDM7 (ORCPT ); Sun, 30 Jul 2023 23:12:59 -0400 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0A11E75 for ; Sun, 30 Jul 2023 20:12:57 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0VoXPAnl_1690773174; Received: from 30.97.48.66(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0VoXPAnl_1690773174) by smtp.aliyun-inc.com; Mon, 31 Jul 2023 11:12:54 +0800 Message-ID: <1b30056e-0208-841e-9174-4a977dbba309@linux.alibaba.com> Date: Mon, 31 Jul 2023 11:13:22 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 1/2] mm/compaction: correct comment of candidate pfn in fast_isolate_freepages To: Kemeng Shi , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20230721150957.2058634-1-shikemeng@huawei.com> <20230721150957.2058634-2-shikemeng@huawei.com> From: Baolin Wang In-Reply-To: <20230721150957.2058634-2-shikemeng@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/21/2023 11:09 PM, Kemeng Shi wrote: > If no preferred one was not found, we will use candidate page with maximum > pfn > min_pfn which is saved in high_pfn. Correct "minimum" to "maximum > candidate" in comment. > > Signed-off-by: Kemeng Shi Yes, the 'minimum' can be confused. At least to me, it looks good. Reviewed-by: Baolin Wang > --- > mm/compaction.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/compaction.c b/mm/compaction.c > index eb1d3d9a422c..c0d8d08fc163 100644 > --- a/mm/compaction.c > +++ b/mm/compaction.c > @@ -1526,7 +1526,7 @@ static void fast_isolate_freepages(struct compact_control *cc) > break; > } > > - /* Use a minimum pfn if a preferred one was not found */ > + /* Use a maximum candidate pfn if a preferred one was not found */ > if (!page && high_pfn) { > page = pfn_to_page(high_pfn); >