Re: [PATCH 6/6] mm/sparse-vmemmap: open-code vmemmap_populate_address()

From: Qi Zheng

Date: Tue Sep 22 2026 - 04:22:49 EST




On 9/13/26 4:37 PM, Muchun Song wrote:
vmemmap_populate_address() no longer has any callers that need the
returned PTE. Its only remaining user, vmemmap_populate_range(), only
checks whether population succeeded.

Open-code vmemmap_populate_address() directly in
vmemmap_populate_basepages(), remove the now-redundant range helper,
and return -ENOMEM directly on failure.

Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
---
mm/sparse-vmemmap.c | 54 ++++++++++++++-------------------------------
1 file changed, 17 insertions(+), 37 deletions(-)


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

Thanks,
Qi