Re: [PATCH v5 14/17] mm/hugetlb: remove HUGE_BOOTMEM_HVO

From: Qi Zheng

Date: Tue Aug 25 2026 - 09:38:36 EST




On 8/25/26 4:46 PM, Muchun Song wrote:
The HUGE_BOOTMEM_HVO flag tracked whether a bootmem huge page had
already gone through the old early vmemmap optimization path.

Now that HugeTLB uses section-based vmemmap optimization, that state is
already reflected in the section order.

Remove HUGE_BOOTMEM_HVO and its helper, and use the section state
directly when deciding whether to mark a folio as vmemmap-optimized.

Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
Acked-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
---
v3:
- Use the order-based helper for the bootmem vmemmap-optimized check

v2:
- Collect Acked-by from Mike Rapoport
---
include/linux/hugetlb.h | 5 ++---
mm/hugetlb.c | 12 +-----------
mm/hugetlb_vmemmap.c | 2 --
3 files changed, 3 insertions(+), 16 deletions(-)

Acked-by: Qi Zheng <qi.zheng@xxxxxxxxx>

Thanks,
Qi