Re: [PATCH 12/12] mm: hugetlb_vmemmap: make vmemmap PTE conversion folio-oriented
From: Lance Yang
Date: Fri Oct 23 2026 - 03:34:46 EST
On Tue, Oct 20, 2026 at 07:58:24PM +0800, 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>
>---
Nothing jumped out at me, so:
Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>