Re: [PATCH v2 07/12] mm: hugetlb_vmemmap: simplify shared tail page handling

From: Mike Rapoport

Date: Mon Nov 02 2026 - 05:19:50 EST


> The remap walker currently carries a shared tail page selected by its
> caller, even though the optimize and restore callbacks can derive the
> same information from the folio being processed. This adds redundant
> state to the walker and couples its interface to caller-side preparation.
>
> Derive the shared mapping state in the callbacks instead, keeping the
> mapping policy with the PTE being processed and simplifying the remap
> interface.
>
> No functional change intended.
>
> Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
> Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>
> Reviewed-by: Qi Zheng <qi.zheng@xxxxxxxxx>

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

--
Sincerely yours,
Mike.