Re: [PATCH v5 02/17] mm/sparse-vmemmap: rename HVO order macros
From: Qi Zheng
Date: Tue Aug 25 2026 - 06:11:58 EST
On 8/25/26 4:45 PM, Muchun Song wrote:
The macros VMEMMAP_TAIL_MIN_ORDER and NR_VMEMMAP_TAILS describe the
order range where HVO can be applied, but their names tie that range to
the tail-page cache implementation.
Rename them with a VMEMMAP_OPTIMIZATION prefix and use the new names in
the HVO paths. This makes the code describe the optimization requirements
rather than the tail-page cache implementation detail.
No functional change intended.
Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
Acked-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
---
v3:
- Collect Acked-by from Mike Rapoport
v2:
- Rename the macros with a VMEMMAP_OPTIMIZATION prefix (suggested by
Mike Rapoport)
- Drop intermediate optimized-folio size macros (suggested by Mike
Rapoport)
---
include/linux/mmzone.h | 17 +++++++++--------
mm/hugetlb.c | 4 ++--
mm/hugetlb_vmemmap.c | 2 +-
mm/sparse-vmemmap.c | 4 ++--
4 files changed, 14 insertions(+), 13 deletions(-)
Acked-by: Qi Zheng <qi.zheng@xxxxxxxxx>
Thanks,
Qi