From: Ran Xiaokai Date: Sun, 18 Sep 2022 02:56:40 +0000 (+0000) Subject: mm/page_alloc: update comments for rmqueue() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a57ae9ef9e1a20b68ae841a8cab7aff3f000ed9d;p=linux.git 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 Cc: Mel Gorman Signed-off-by: Andrew Morton --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 66f7778732fbd..12b6184cbbed6 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. */ /*