Re: [PATCH 28/28] Revert "mm/hugetlb: deal with multiple calls to hugetlb_bootmem_alloc"
Muchun Song <[email protected]>
| Newsgroups | gmane.linux.uml.devel,gmane.linux.ports.alpha,gmane.linux.ports.arm.kernel,gmane.linux.documentation,gmane.linux.ports.hexagon,gmane.linux.kernel,gmane.linux.ports.mips,gmane.linux.kernel.mm,gmane.linux.ports.parisc,gmane.linux.ports.riscv,gmane.linux.ports.sh.devel,gmane.linux.kernel.arc,gmane.linux.ports.ppc64.devel,gmane.linux.ports.sparc |
|---|---|
| Message-ID | <[email protected]> |
> On Dec 28, 2025, at 20:39, Mike Rapoport <[email protected]> wrote: > > From: "Mike Rapoport (Microsoft)" <[email protected]> > > 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) <[email protected]> Nice cleanup. Acked-by: Muchun Song <[email protected]> Thanks.