[PATCH 11/12] fs/proc/page: clarify comment in get_max_dump_pfn()
From: David Hildenbrand (Arm)
Date: Wed Sep 09 2026 - 09:52:06 EST
pfn_to_online_page() will only succeed on some PFNs within the same
section, not necessarily all. Let's make that clearer.
Signed-off-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
---
fs/proc/page.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/fs/proc/page.c b/fs/proc/page.c
index 260772b20bd99..6856ff3e3cf28 100644
--- a/fs/proc/page.c
+++ b/fs/proc/page.c
@@ -31,10 +31,9 @@ static inline unsigned long get_max_dump_pfn(void)
{
#ifdef CONFIG_SPARSEMEM
/*
- * The memmap of early sections is completely populated and marked
- * online even if max_pfn does not fall on a section boundary -
- * pfn_to_online_page() will succeed on all pages. Allow inspecting
- * these memmaps.
+ * If max_pfn does not fall on a section boundary, pfn_to_online_page()
+ * can succeed on PFNs beyond max_pfn within the same section. Allow
+ * inspecting these memmaps.
*/
return round_up(max_pfn, PAGES_PER_SECTION);
#else
--
2.43.0