Re: [PATCH 14/14] mm/sparse: move memory hotplug bits to sparse-vmemmap.c

Mike Rapoport
2026-03-18T08:58:05Z

On Tue, Mar 17, 2026 at 05:56:52PM +0100, David Hildenbrand (Arm) wrote:
> Let's move all memory hoptplug related code to sparse-vmemmap.c.
>
> We only have to expose sparse_index_init(). While at it, drop the
> definition of sparse_index_init() for !CONFIG_SPARSEMEM, which is unused,
> and place the declaration in internal.h.
>
> Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>

Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>

> ---
> include/linux/mmzone.h | 1 -
> mm/internal.h | 4 +
> mm/sparse-vmemmap.c | 308 ++++++++++++++++++++++++++++++++++++++++
> mm/sparse.c | 314 +----------------------------------------
> 4 files changed, 314 insertions(+), 313 deletions(-)

--
Sincerely yours,
Mike.