]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
mm/page_alloc: update comments for rmqueue()
authorRan Xiaokai <ran.xiaokai@zte.com.cn>
Sun, 18 Sep 2022 02:56:40 +0000 (02:56 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:31 +0000 (14:03 -0700)
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>
mm/page_alloc.c

index 66f7778732fbd776eb9c922d5d1238e9301a5bab..12b6184cbbed6d00107c9d509012250c5c31c80c 100644 (file)
@@ -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.
  */
 
 /*