aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJungseung Lee <[email protected]>2021-06-28 19:41:02 -0700
committerLinus Torvalds <[email protected]>2021-06-29 10:53:53 -0700
commitc5a54c706e04a4ba7c4e3428776ac9e44aec17ea (patch)
tree3b5afcce0eea1e6604215623995d9b5f7ea3f017
parent7a22bdc3c443d5abc420df1381e425b49e8901a3 (diff)
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 Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Jungseung Lee <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--include/linux/mm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 1a98b5447a3b..f08e9de92fc5 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -2416,7 +2416,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)