[PATCH 07/10] proc: Remove mention of PG_slab

Matthew Wilcox (Oracle)
2025-06-06T22:22:42Z

Improve the documentation of buddy pages while I'm editing this comment.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
fs/proc/page.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/fs/proc/page.c b/fs/proc/page.c
index 999af26c7298..d7d0f0ca1e9b 100644
--- a/fs/proc/page.c
+++ b/fs/proc/page.c
@@ -183,10 +183,7 @@ u64 stable_page_flags(const struct page *page)
u |= 1 << KPF_ZERO_PAGE;
}

- /*
- * Caveats on high order pages: PG_buddy and PG_slab will only be set
- * on the head page.
- */
+ /* KPF_BUDDY is only set on the first buddy page */
if (PageBuddy(page))
u |= 1 << KPF_BUDDY;
else if (page_count(page) == 0 && is_free_buddy_page(page))
--
2.47.2