linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/page_alloc: update comments for rmqueue()
@ 2022-09-18  2:56 cgel.zte
  0 siblings, 0 replies; only message in thread
From: cgel.zte @ 2022-09-18  2:56 UTC (permalink / raw)
  To: akpm; +Cc: ran.xiaokai, linux-mm, linux-kernel

From: Ran Xiaokai <ran.xiaokai@zte.com.cn>

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.

Signed-off-by: Ran Xiaokai <ran.xiaokai@zte.com.cn>
---
 mm/page_alloc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index e5486d47406e..bed7570e0746 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -3815,7 +3815,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.
  */
 static inline
 struct page *rmqueue(struct zone *preferred_zone,
-- 
2.15.2




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-18  2:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-18  2:56 [PATCH] mm/page_alloc: update comments for rmqueue() cgel.zte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).