The patch titled Subject: mm/page_alloc: Introduce free_area_init_core_hotplug has been added to the -mm tree. Its filename is mm-page_alloc-introduce-free_area_init_core_hotplug-v6.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-page_alloc-introduce-free_area_init_core_hotplug-v6.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-page_alloc-introduce-free_area_init_core_hotplug-v6.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Oscar Salvador <osalvador@xxxxxxx> Subject: mm/page_alloc: Introduce free_area_init_core_hotplug v6 Link: http://lkml.kernel.org/r/20180801122348.21588-6-osalvador@xxxxxxxxxxxxxxxxxx Signed-off-by: Oscar Salvador <osalvador@xxxxxxx> Reviewed-by: Pavel Tatashin <pasha.tatashin@xxxxxxxxxx> Acked-by: Michal Hocko <mhocko@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/memory_hotplug.h | 1 + include/linux/mm.h | 4 ---- mm/page_alloc.c | 5 +++-- 3 files changed, 4 insertions(+), 6 deletions(-) --- a/include/linux/memory_hotplug.h~mm-page_alloc-introduce-free_area_init_core_hotplug-v6 +++ a/include/linux/memory_hotplug.h @@ -319,6 +319,7 @@ static inline int offline_pages(unsigned static inline void remove_memory(int nid, u64 start, u64 size) {} #endif /* CONFIG_MEMORY_HOTREMOVE */ +extern void __ref free_area_init_core_hotplug(int nid); extern int walk_memory_range(unsigned long start_pfn, unsigned long end_pfn, void *arg, int (*func)(struct memory_block *, void *)); extern int add_memory(int nid, u64 start, u64 size); --- a/include/linux/mm.h~mm-page_alloc-introduce-free_area_init_core_hotplug-v6 +++ a/include/linux/mm.h @@ -2016,10 +2016,6 @@ extern void __init free_area_init_node(i unsigned long zone_start_pfn, unsigned long *zholes_size); extern void free_initmem(void); -#ifdef CONFIG_MEMORY_HOTPLUG -extern void __ref free_area_init_core_hotplug(int nid); -#endif - /* * Free reserved pages within range [PAGE_ALIGN(start), end & PAGE_MASK) * into the buddy system. The freed pages will be poisoned with pattern --- a/mm/page_alloc.c~mm-page_alloc-introduce-free_area_init_core_hotplug-v6 +++ a/mm/page_alloc.c @@ -6177,7 +6177,7 @@ void __init set_pageblock_order(void) #endif /* CONFIG_HUGETLB_PAGE_SIZE_VARIABLE */ static unsigned long __init calc_memmap_size(unsigned long spanned_pages, - unsigned long present_pages) + unsigned long present_pages) { unsigned long pages = spanned_pages; @@ -6230,6 +6230,7 @@ static void pgdat_init_kcompactd(struct static void __meminit pgdat_init_internals(struct pglist_data *pgdat) { pgdat_resize_init(pgdat); + pgdat_init_numabalancing(pgdat); pgdat_init_split_queue(pgdat); pgdat_init_kcompactd(pgdat); @@ -6242,7 +6243,7 @@ static void __meminit pgdat_init_interna lruvec_init(node_lruvec(pgdat)); } -static void __paginginit zone_init_internals(struct zone *zone, enum zone_type idx, int nid, +static void __meminit zone_init_internals(struct zone *zone, enum zone_type idx, int nid, unsigned long remaining_pages) { zone->managed_pages = remaining_pages; _ Patches currently in -mm which might be from osalvador@xxxxxxx are mm-memory_hotplug-make-add_memory_resource-use-__try_online_node.patch mm-memory_hotplug-call-register_mem_sect_under_node.patch mm-memory_hotplug-make-register_mem_sect_under_node-a-cb-of-walk_memory_range.patch mm-memory_hotplug-drop-unnecessary-checks-from-register_mem_sect_under_node.patch mm-sparse-make-sparse_init_one_section-void-and-remove-check.patch mm-remove-zone_id-and-make-use-of-zone_idx-in-is_dev_zone.patch mm-page_alloc-move-ifdefery-out-of-free_area_init_core.patch mm-page_alloc-inline-function-to-handle-config_deferred_struct_page_init.patch mm-page_alloc-introduce-free_area_init_core_hotplug.patch mm-page_alloc-introduce-free_area_init_core_hotplug-v6.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html