Re: [RFC PATCH 02/24] mm/memory_hotplug: Move {get,put}_page_bootmem() to bootmem_info.c

From: Mike Kravetz
Date: Tue Sep 29 2020 - 19:33:57 EST


On 9/15/20 5:59 AM, Muchun Song wrote:
> In the later patch, we will use {get,put}_page_bootmem() to initialize
> the page for vmemmap or free vmemmap page to buddy. So move them out of
> CONFIG_MEMORY_HOTPLUG_SPARSE.
>
> Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>

More code movement.

Acked-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
--
Mike Kravetz

> ---
> arch/x86/mm/init_64.c | 2 +-
> include/linux/bootmem_info.h | 13 +++++++++++++
> include/linux/memory_hotplug.h | 4 ----
> mm/bootmem_info.c | 26 ++++++++++++++++++++++++++
> mm/memory_hotplug.c | 27 ---------------------------
> mm/sparse.c | 1 +
> 6 files changed, 41 insertions(+), 32 deletions(-)