Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10542528rwp; Fri, 21 Jul 2023 00:24:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlGxBkLFBRQwBgiVRAGqtMCPJo7P3hPZa7fYcQBzyb5JeIDvcm4uYKiqV2fB70lxIl9cL22g X-Received: by 2002:a17:902:c254:b0:1b8:870c:4ce8 with SMTP id 20-20020a170902c25400b001b8870c4ce8mr1855909plg.18.1689924285008; Fri, 21 Jul 2023 00:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689924284; cv=none; d=google.com; s=arc-20160816; b=F8F9OauYIJCmeDSYqV9cyTPXKkskuyW9K0aPozzQZjhbV00DfXVW4eCk0y1is8X6v/ 8PTjRisJghxN6jhy28M0rK03Rdk+SiI/ecgtAxWPtxjIvI8TL2mEt8hce0d01Cd7/vhe vVUrl4DiIQqGsJ6VyxF6R9Lcx+czmjUPcCaUqUgBKZBRP5sDJOCGs4KC3aVfxZy0t6PQ xxr8P/BFJcswETBN51EUQsTLBHJ/BesKCGV+U15hYlEuA15lTPX9iwp9XTk/k+T8CfyF TMmxjWPxIugNuWYkQegtzZUWRdzrtWYjyuzVSDYdyKQ+6eOkmkp58izU4YGJ9on8tdmK lryQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=FV5foqa1v/OgaGaq9sUuYp6wNxGKORyGhmDxVO0RqaA=; fh=etoAlGBf+SpQVMMXCJMV93r+UgAwMbRgi3zaVOqfdoA=; b=Eo0FBrSmbY56e3xtHx0OsEn52NoBpSGbxI848FtGL0uVTbxUly5Y4CJ7mMwJFwlLzk yXbA7p3AZIMTcPDPoEzcd4kWEH3NJSYGa5Skt+WR3aaxgS8fhUmA73MBc69LvMZl83Mw zA5QOYpjRacHvim9fSqvRJNnZ754bB/IG/z9tvKuBVrjXTGPXciYMhvre1kILY7eqr2F gXxnZZNWiyouD/n0Kb+bBp9nzoyuB+M1Tacxle2NYyUKKnTNDvHnR6v/htADtPSxZ2Nk aIi4TL45iFYujSZB9bgBPesBp0jtzJ8Q0oM8Zc8HwMzlXvwi0d1zrV9sanT/4n3wz5y3 Bpzw== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v1-20020a1709028d8100b001b3414a1fa9si2403351plo.175.2023.07.21.00.24.32; Fri, 21 Jul 2023 00:24:44 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229867AbjGUHJl (ORCPT + 99 others); Fri, 21 Jul 2023 03:09:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229713AbjGUHJc (ORCPT ); Fri, 21 Jul 2023 03:09:32 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA7C62735 for ; Fri, 21 Jul 2023 00:09:30 -0700 (PDT) Received: from kwepemi500016.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4R6gdN0nMlz18MCF; Fri, 21 Jul 2023 15:08:40 +0800 (CST) Received: from huawei.com (10.175.101.6) by kwepemi500016.china.huawei.com (7.221.188.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 21 Jul 2023 15:09:25 +0800 From: Kemeng Shi To: , , , CC: Subject: [PATCH v2 1/2] mm/compaction: correct comment of candidate pfn in fast_isolate_freepages Date: Fri, 21 Jul 2023 23:09:56 +0800 Message-ID: <20230721150957.2058634-2-shikemeng@huawei.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20230721150957.2058634-1-shikemeng@huawei.com> References: <20230721150957.2058634-1-shikemeng@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi500016.china.huawei.com (7.221.188.220) X-CFilter-Loop: Reflected X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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 --- 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); -- 2.30.0