Re: [PATCH 11/12] mm: hugetlb_vmemmap: unify vmemmap range restoration

From: Qi Zheng

Date: Sun Nov 01 2026 - 02:17:03 EST




On 10/20/26 7:58 PM, Muchun Song wrote:
Restoring an optimized folio and rolling back a partial optimization
both restore a vmemmap range, but the operation is currently implemented
separately in each path.

Use a single range-restoration path for both cases, making rollback an
explicit bounded form of normal restoration.

No functional change intended.

Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
---
mm/hugetlb_vmemmap.c | 33 ++++++++++++++-------------------
1 file changed, 14 insertions(+), 19 deletions(-)

Reviewed-by: Qi Zheng <qi.zheng@xxxxxxxxx>

Thanks,
Qi