Re: [PATCH v2 10/12] mm: hugetlb_vmemmap: make vmemmap restoration folio-oriented

From: Mike Rapoport

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


On Mon, 02 Nov 2026 11:25:23 +0800, Muchun Song <songmuchun@xxxxxxxxxxxxx> wrote:
> Like optimization, vmemmap restoration operates on one folio at a time,
> but the current interface exposes a raw address range and requires the
> HugeTLB caller to prepare part of the operation. This splits the common
> mechanism across layers and obscures its natural unit of work.
>
> Make the folio the unit of vmemmap restoration and move the common
> mechanics behind a folio-oriented interface. This keeps HugeTLB-specific
> eligibility and state in the caller and gives both directions of HVO
> consistent folio-level interfaces.
>
> [...]

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

--
Sincerely yours,
Mike.