Re: [PATCH 07/12] mm: hugetlb_vmemmap: simplify shared tail page handling
From: Qi Zheng
Date: Sun Nov 01 2026 - 02:03:27 EST
On 10/20/26 7:58 PM, Muchun Song wrote:
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>
---
include/linux/vmemmap-optimization.h | 6 +-
mm/hugetlb_vmemmap.c | 89 ++++++++++++----------------
mm/mm_init.c | 6 +-
mm/sparse-vmemmap.c | 5 +-
4 files changed, 49 insertions(+), 57 deletions(-)
LGTM, so:
Reviewed-by: Qi Zheng <qi.zheng@xxxxxxxxx>
Thanks,
Qi