Re: [PATCH 28/28] Revert "mm/hugetlb: deal with multiple calls to hugetlb_bootmem_alloc"

From: Muchun Song
Date: Sun Dec 28 2025 - 22:14:37 EST




> On Dec 28, 2025, at 20:39, Mike Rapoport <rppt@xxxxxxxxxx> wrote:
>
> From: "Mike Rapoport (Microsoft)" <rppt@xxxxxxxxxx>
>
> hugetlb_bootmem_alloc() is called only once, no need to check if it was
> called aready at its entry.
>
> Other checks performed during HVO initialization are also no longer
> necessary because sparse_init() that calls hugetlb_vmemmap_init_early()
> and hugetlb_vmemmap_init_late() is alaways called after
> hugetlb_bootmem_alloc().
>
> This reverts commit d58b2498200724e4f8c12d71a5953da03c8c8bdf.
>
> Signed-off-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>

Nice cleanup.

Acked-by: Muchun Song <muchun.song@xxxxxxxxx>

Thanks.