Re: [PATCH v2 12/12] mm: hugetlb_vmemmap: make vmemmap PTE conversion folio-oriented

From: Mike Rapoport

Date: Mon Nov 02 2026 - 05:24:53 EST


On Mon, 02 Nov 2026 11:25:25 +0800, Muchun Song <songmuchun@xxxxxxxxxxxxx> 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.
>
> [...]

Reviewed-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>

--
Sincerely yours,
Mike.