Re: [PATCH v4 09/17] mm/sparse: initialize memory sections earlier
From: Mike Rapoport
Date: Mon Aug 24 2026 - 05:06:09 EST
On Wed, 19 Aug 2026 17:51:31 +0800, Muchun Song <songmuchun@xxxxxxxxxxxxx> wrote:
> Upcoming HugeTLB bootmem changes need sparsemem section metadata before
> the HugeTLB bootmem allocation path runs. The memory sections are
> initialized from sparse_init(), which is called too late for that setup.
>
> Move the code that initializes sparsemem section metadata for memblock
> ranges into mm_core_init_early(), before free_area_init() and the HugeTLB
> bootmem setup. Rename the helper to sparse_sections_init() so the new
> caller describes the sparsemem-specific initialization step.
>
> [...]
Reviewed-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
--
Sincerely yours,
Mike.