Skip to contentSkip to conversation

mm : Report which part of mem is being freed on initmem case

PATCH Applied Jungseung Lee 1 participant 1 message Jun 3, 2021 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20210603074737epcas1p4578329b14ee6d5cec7fbb002e014f7c2@epcas1p4.samsung.com

#1 lore raw

PATCH 1/1 mm : Report which part of mem is being freed on initmem case

Add the details for figuring out which parts of the kernel image is being freed on initmem case.

Before:
Freeing unused kernel memory: 1024K

After:
Freeing unused kernel image (initmem) memory: 1024K

---
 include/linux/mm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mm.h +1 -1
index 8631ddf..62f0901 100644
@@ -2426,7 +2426,7 @@ static inline unsigned long free_initmem_default(int poison)
 	extern char __init_begin[], __init_end[];
 
 	return free_reserved_area(&__init_begin, &__init_end,
-				  poison, "unused kernel");
+				  poison, "unused kernel image (initmem)");
 }
 
 static inline unsigned long get_num_physpages(void)
Signature · 1 line
2.7.4