[PATCH v2 12/13] fs/proc/page: clarify comment in get_max_dump_pfn()
From: David Hildenbrand (Arm)
Date: Mon Sep 21 2026 - 16:18:51 EST
pfn_to_online_page() will only succeed on some PFNs within the same
section, not necessarily all. Let's make that clearer.
While at it, rephrase it to "Allow inspection of".
Acked-by: Oscar Salvador <osalvador@xxxxxxx>
Acked-by: Lorenzo Stoakes (ARM) <ljs@xxxxxxxxxx>
Reviewed-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
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 f90e1030825e9..6aa99e42ec222 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
+ * inspection of these memmaps.
*/
return round_up(max_pfn, PAGES_PER_SECTION);
#else
--
2.43.0