Skip to content

Commit

Permalink
Merge tag 'memblock-v6.13-rc1' of git://git.kernel.org/pub/scm/linux/…
Browse files Browse the repository at this point in the history
…kernel/git/rppt/memblock

Pull memblock updates from Mike Rapoport:

 - replace hardcoded strings with str_on_off() in report_meminit()

 - initialize reserved pages to MIGRATE_MOVABLE when deferred struct
   page initialization is enabled so that if the reserved pages are
   freed they are put on movable free lists like it is done now when
   deferred struct page initialization is disabled

* tag 'memblock-v6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock:
  memblock: uniformly initialize all reserved pages to MIGRATE_MOVABLE
  mm: Use str_on_off() helper function in report_meminit()
  • Loading branch information
torvalds committed Nov 27, 2024
2 parents b536125 + 98b7beb commit ab952fc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mm/mm_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,9 @@ static void __meminit init_reserved_page(unsigned long pfn, int nid)
break;
}
__init_single_page(pfn_to_page(pfn), pfn, zid, nid);

if (pageblock_aligned(pfn))
set_pageblock_migratetype(pfn_to_page(pfn), MIGRATE_MOVABLE);
}
#else
static inline void pgdat_set_deferred_range(pg_data_t *pgdat) {}
Expand Down Expand Up @@ -2572,8 +2575,8 @@ static void __init report_meminit(void)
stack = "off";

pr_info("mem auto-init: stack:%s, heap alloc:%s, heap free:%s\n",
stack, want_init_on_alloc(GFP_KERNEL) ? "on" : "off",
want_init_on_free() ? "on" : "off");
stack, str_on_off(want_init_on_alloc(GFP_KERNEL)),
str_on_off(want_init_on_free()));
if (want_init_on_free())
pr_info("mem auto-init: clearing system memory may take some time...\n");
}
Expand Down

0 comments on commit ab952fc

Please sign in to comment.