summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorRan Xiaokai <ran.xiaokai@zte.com.cn>2022-09-18 04:56:40 +0200
committerAndrew Morton <akpm@linux-foundation.org>2022-10-03 23:03:31 +0200
commita57ae9ef9e1a20b68ae841a8cab7aff3f000ed9d (patch)
tree76ee5b6d0cdb23547e654dd366a2baa6372f573f /mm/page_alloc.c
parentmm/damon: rename damon_pageout_score() to damon_cold_score() (diff)
downloadlinux-a57ae9ef9e1a20b68ae841a8cab7aff3f000ed9d.tar.xz
linux-a57ae9ef9e1a20b68ae841a8cab7aff3f000ed9d.zip
mm/page_alloc: update comments for rmqueue()
Since commit 44042b449872 ("mm/page_alloc: allow high-order pages to be stored on the per-cpu lists"), the per-cpu page allocators (PCP) is not only for order-0 pages. Update the comments. Link: https://lkml.kernel.org/r/20220918025640.208586-1-ran.xiaokai@zte.com.cn Signed-off-by: Ran Xiaokai <ran.xiaokai@zte.com.cn> Cc: Mel Gorman <mgorman@techsingularity.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 66f7778732fb..12b6184cbbed 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -3810,7 +3810,8 @@ static struct page *rmqueue_pcplist(struct zone *preferred_zone,
}
/*
- * Allocate a page from the given zone. Use pcplists for order-0 allocations.
+ * Allocate a page from the given zone.
+ * Use pcplists for THP or "cheap" high-order allocations.
*/
/*