* [PATCH] mm/mm_init: remove unnecessary initialization of pgdat->per_cpu_nodestats
@ 2026-07-29 15:51 Sang-Heon Jeon
0 siblings, 0 replies; only message in thread
From: Sang-Heon Jeon @ 2026-07-29 15:51 UTC (permalink / raw)
To: Andrew Morton, Mike Rapoport; +Cc: linux-mm
free_area_init_node() sets pgdat->per_cpu_nodestats to NULL and later
calls free_area_init_core(), which unconditionally overwrites it with
&boot_nodestats. Nothing reads the field in between, so the store has
no effect.
Remove unnecessary initialization. No functional change.
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
---
mm/mm_init.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/mm/mm_init.c b/mm/mm_init.c
index 711f821f7b3c..367b03623f89 100644
--- a/mm/mm_init.c
+++ b/mm/mm_init.c
@@ -1722,7 +1722,6 @@ static void __init free_area_init_node(int nid)
pgdat->node_id = nid;
pgdat->node_start_pfn = start_pfn;
- pgdat->per_cpu_nodestats = NULL;
if (start_pfn != end_pfn) {
pr_info("Initmem setup node %d [mem %#018Lx-%#018Lx]\n", nid,
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-29 15:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-29 15:51 [PATCH] mm/mm_init: remove unnecessary initialization of pgdat->per_cpu_nodestats Sang-Heon Jeon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox