* [to-be-updated] mm-mm_init-remove-zone_absent_pages_in_node.patch removed from -mm tree
@ 2026-09-01 0:53 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-09-01 0:53 UTC (permalink / raw)
To: mm-commits, rppt, ekffu200098, akpm
The quilt patch titled
Subject: mm/mm_init: remove zone_absent_pages_in_node()
has been removed from the -mm tree. Its filename was
mm-mm_init-remove-zone_absent_pages_in_node.patch
This patch was dropped because an updated version will be issued
------------------------------------------------------
From: Sang-Heon Jeon <ekffu200098@gmail.com>
Subject: mm/mm_init: remove zone_absent_pages_in_node()
Date: Thu, 27 Aug 2026 23:41:46 +0900
zone_absent_pages_in_node() returns 0 when the zone is empty and otherwise
calls __absent_pages_in_range(), which already returns 0 for an empty
range.
So remove it and call __absent_pages_in_range() directly.
No functional change.
Link: https://lore.kernel.org/20260827144151.486192-1-ekffu200098@gmail.com
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Cc: Mike Rapoport <rppt@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/mm_init.c | 20 +++-----------------
1 file changed, 3 insertions(+), 17 deletions(-)
--- a/mm/mm_init.c~mm-mm_init-remove-zone_absent_pages_in_node
+++ a/mm/mm_init.c
@@ -1187,22 +1187,9 @@ unsigned long __init absent_pages_in_ran
return __absent_pages_in_range(MAX_NUMNODES, start_pfn, end_pfn);
}
-/* Return the number of page frames in holes in a zone on a node */
-static unsigned long __init zone_absent_pages_in_node(int nid,
- unsigned long zone_type,
- unsigned long zone_start_pfn,
- unsigned long zone_end_pfn)
-{
- /* zone is empty, we don't have any absent pages */
- if (zone_start_pfn == zone_end_pfn)
- return 0;
-
- return __absent_pages_in_range(nid, zone_start_pfn, zone_end_pfn);
-}
-
/*
* Return the number of pages a zone spans in a node, including holes
- * present_pages = zone_spanned_pages_in_node() - zone_absent_pages_in_node()
+ * present_pages = zone_spanned_pages_in_node() - __absent_pages_in_range()
*/
static unsigned long __init zone_spanned_pages_in_node(int nid,
unsigned long zone_type,
@@ -1292,9 +1279,8 @@ static void __init calculate_node_totalp
node_end_pfn,
&zone_start_pfn,
&zone_end_pfn);
- absent = zone_absent_pages_in_node(pgdat->node_id, i,
- zone_start_pfn,
- zone_end_pfn);
+ absent = __absent_pages_in_range(pgdat->node_id, zone_start_pfn,
+ zone_end_pfn);
real_size = spanned - absent;
_
Patches currently in -mm which might be from ekffu200098@gmail.com are
percpu-fix-the-comment-about-which-sizes-share-a-slot.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-01 0:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-01 0:53 [to-be-updated] mm-mm_init-remove-zone_absent_pages_in_node.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.