Re: [PATCH v5 09/17] mm/sparse: initialize memory sections earlier

From: Muchun Song

Date: Wed Sep 09 2026 - 09:04:21 EST




> On Sep 9, 2026, at 20:48, David Hildenbrand (Arm) <david@xxxxxxxxxx> wrote:
>
>
>>
>>>
>>> I have patches to get rid of __section_mark_present() and just set them all to
>>> SECTION_IS_EARLY|SECTION_IS_ONLINE such that we can just iterate early sections
>>> and get rid of that PRESENT monstrosity.
>>>
>>> Apart from that LGTM, even though I don't particularly enjoy splitting us now
>>> having two init entry points
>>>
>>> sparse_init
>>
>> Maybe this one should be sparse_memmap_init? If yes, it could be another separate
>> cleanup patch.
>
> It does way more than that. In my patches I factor some of sparse_init out and
> call it sparse_metadata_init() -- memmap and usemap.

OK, I'll leave this part untouched since you've already done the perfect
renaming.

Thanks.

>
> --
> Cheers,
>
> David