linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: remove obsolete comment above struct per_cpu_pages
@ 2023-07-06  9:24 Miaohe Lin
  0 siblings, 0 replies; only message in thread
From: Miaohe Lin @ 2023-07-06  9:24 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, linmiaohe

Since commit 01b44456a7aa ("mm/page_alloc: replace local_lock with
normal spinlock"), per_cpu_pages is protected by normal spinlock.
Remove the obsolete comment as it's not that helpful.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 include/linux/mmzone.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 5e50b78d58ea..4106fbc5b4b3 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -676,7 +676,6 @@ enum zone_watermarks {
 #define high_wmark_pages(z) (z->_watermark[WMARK_HIGH] + z->watermark_boost)
 #define wmark_pages(z, i) (z->_watermark[i] + z->watermark_boost)
 
-/* Fields and list protected by pagesets local_lock in page_alloc.c */
 struct per_cpu_pages {
 	spinlock_t lock;	/* Protects lists field */
 	int count;		/* number of pages in the list */
-- 
2.33.0



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

only message in thread, other threads:[~2023-07-06  9:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-06  9:24 [PATCH] mm: remove obsolete comment above struct per_cpu_pages Miaohe Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox