summaryrefslogtreecommitdiffstats
path: root/mm/compaction.c
diff options
context:
space:
mode:
authorKemeng Shi <shikemeng@huawei.com>2023-07-21 17:09:56 +0200
committerAndrew Morton <akpm@linux-foundation.org>2023-08-18 19:12:44 +0200
commite6bd14eca207bf822b7c743818ba6e04889348ec (patch)
tree0d5f7849def594766f6b294447b8471da51c0e68 /mm/compaction.c
parentmm/mprotect: fix obsolete function name in change_pte_range() (diff)
downloadlinux-e6bd14eca207bf822b7c743818ba6e04889348ec.tar.xz
linux-e6bd14eca207bf822b7c743818ba6e04889348ec.zip
mm/compaction: correct comment of candidate pfn in fast_isolate_freepages
Patch series "Two minor cleanups for compaction", v2. This series contains two random cleanups for compaction. This patch (of 2): 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. Link: https://lkml.kernel.org/r/20230721150957.2058634-1-shikemeng@huawei.com Link: https://lkml.kernel.org/r/20230721150957.2058634-2-shikemeng@huawei.com Signed-off-by: Kemeng Shi <shikemeng@huawei.com> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/compaction.c')
-rw-r--r--mm/compaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/compaction.c b/mm/compaction.c
index 02239abed6ce..480f29bcf823 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -1554,7 +1554,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);