Re: [PATCH v3 5/6] mm/sparse-vmemmap: open-code vmemmap_populate_address()
From: Lance Yang
Date: Thu Oct 01 2026 - 11:21:38 EST
On Tue, Sep 29, 2026 at 01:32:30PM +0800, 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>
>Acked-by: Qi Zheng <qi.zheng@xxxxxxxxx>
>---
Much simpler without the extra wrappers :)
Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>