Re: [PATCH 14/14] mm/sparse: move memory hotplug bits to sparse-vmemmap.c
From: Mike Rapoport
Date: Wed Mar 18 2026 - 04:58:36 EST
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@xxxxxxxxxx>
Reviewed-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
> ---
> 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.