lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 18 Sep 2022 02:56:40 +0000
From:   cgel.zte@...il.com
To:     akpm@...ux-foundation.org
Cc:     ran.xiaokai@....com.cn, linux-mm@...ck.org,
        linux-kernel@...r.kernel.org
Subject: [PATCH] mm/page_alloc: update comments for rmqueue()

From: Ran Xiaokai <ran.xiaokai@....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@....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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ