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

Muchun Song
2025-12-29T03:14:29Z

> On Dec 28, 2025, at 20:39, Mike Rapoport <rppt@kernel.org> wrote:
>
> From: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
>
> 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@kernel.org>

Nice cleanup.

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

Thanks.