Re: [PATCH 01/12] mm: hugetlb_vmemmap: remove HugeTLB-specific vmemmap optimization macros

From: Qi Zheng

Date: Sat Oct 31 2026 - 04:03:56 EST




On 10/20/26 7:52 PM, Muchun Song wrote:
Vmemmap optimization is no longer HugeTLB-specific, so the remaining
HugeTLB-local reserve macros are redundant.

Replace them with the generic definitions to remove duplication and keep
the HugeTLB vmemmap code aligned with the common optimization macros.

Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
---
include/linux/vmemmap-optimization.h | 4 ++--
mm/hugetlb.c | 4 ++--
mm/hugetlb_vmemmap.c | 8 ++++----
mm/hugetlb_vmemmap.h | 10 ++--------
4 files changed, 10 insertions(+), 16 deletions(-)

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

Thanks,
Qi