The patch titled Subject: mm: use early_pfn_to_nid in register_page_bootmem_info_node has been added to the -mm tree. Its filename is mm-use-early_pfn_to_nid-in-register_page_bootmem_info_node.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-use-early_pfn_to_nid-in-register_page_bootmem_info_node.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-use-early_pfn_to_nid-in-register_page_bootmem_info_node.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/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Yang Shi <yang.shi@xxxxxxxxxx> Subject: mm: use early_pfn_to_nid in register_page_bootmem_info_node register_page_bootmem_info_node() is invoked in mem_init(), so it will be called before page_alloc_init_late() if CONFIG_DEFERRED_STRUCT_PAGE_INIT is enabled. But, pfn_to_nid() depends on memmap which won't be fully setup until page_alloc_init_late() is done, so replace pfn_to_nid() by early_pfn_to_nid(). Link: http://lkml.kernel.org/r/1464210007-30930-1-git-send-email-yang.shi@xxxxxxxxxx Signed-off-by: Yang Shi <yang.shi@xxxxxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> Cc: Joonsoo Kim <iamjoonsoo.kim@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memory_hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/memory_hotplug.c~mm-use-early_pfn_to_nid-in-register_page_bootmem_info_node mm/memory_hotplug.c --- a/mm/memory_hotplug.c~mm-use-early_pfn_to_nid-in-register_page_bootmem_info_node +++ a/mm/memory_hotplug.c @@ -300,7 +300,7 @@ void register_page_bootmem_info_node(str * multiple nodes we check that this pfn does not already * reside in some other nodes. */ - if (pfn_valid(pfn) && (pfn_to_nid(pfn) == node)) + if (pfn_valid(pfn) && (early_pfn_to_nid(pfn) == node)) register_page_bootmem_info_section(pfn); } } _ Patches currently in -mm which might be from yang.shi@xxxxxxxxxx are mm-make-config_deferred_struct_page_init-depends-on-flatmem-explicitly.patch mm-use-early_pfn_to_nid-in-page_ext_init.patch mm-use-early_pfn_to_nid-in-register_page_bootmem_info_node.patch mm-check-the-return-value-of-lookup_page_ext-for-all-call-sites.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