Re: [PATCH 12/12] mm: hugetlb_vmemmap: make vmemmap PTE conversion folio-oriented
From: Qi Zheng
Date: Sun Nov 01 2026 - 02:19:03 EST
On 10/20/26 7:58 PM, Muchun Song wrote:
Converting a folio's vmemmap mappings from PMDs to PTEs is a per-folio
operation, but the current interface exposes a raw address range and
hardcodes deferred TLB flushing. This splits the common mechanism
across layers and couples it to the HugeTLB batching policy.
Make the folio the unit of PTE conversion and let callers select the TLB
flush policy through the folio-oriented interface. This keeps
HugeTLB-specific eligibility and batching outside the common operation.
No functional change intended.
Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
---
mm/hugetlb_vmemmap.c | 40 +++++++++++++++++++---------------------
1 file changed, 19 insertions(+), 21 deletions(-)
Reviewed-by: Qi Zheng <qi.zheng@xxxxxxxxx>
Thanks,
Qi