Commit e6bd14ec authored by Kemeng Shi's avatar Kemeng Shi Committed by Andrew Morton

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.comSigned-off-by: default avatarKemeng Shi <shikemeng@huawei.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: David Hildenbrand <david@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent eafcb7a9
...@@ -1554,7 +1554,7 @@ static void fast_isolate_freepages(struct compact_control *cc) ...@@ -1554,7 +1554,7 @@ static void fast_isolate_freepages(struct compact_control *cc)
break; 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) { if (!page && high_pfn) {
page = pfn_to_page(high_pfn); page = pfn_to_page(high_pfn);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment