File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2368,6 +2368,7 @@ void set_zone_contiguous(struct zone *zone)
23682368 zone -> contiguous = true;
23692369}
23702370
2371+ static void __init mem_init_print_info (void );
23712372void __init page_alloc_init_late (void )
23722373{
23732374 struct zone * zone ;
@@ -2394,6 +2395,8 @@ void __init page_alloc_init_late(void)
23942395 files_maxfiles_init ();
23952396#endif
23962397
2398+ /* Accounting of total+free memory is stable at this point. */
2399+ mem_init_print_info ();
23972400 buffer_init ();
23982401
23992402 /* Discard memblock private memory */
@@ -2772,7 +2775,6 @@ void __init mm_core_init(void)
27722775 kmsan_init_shadow ();
27732776 stack_depot_early_init ();
27742777 mem_init ();
2775- mem_init_print_info ();
27762778 kmem_cache_init ();
27772779 /*
27782780 * page_owner must be initialized after buddy is ready, and also after
You can’t perform that action at this time.
0 commit comments