summaryrefslogtreecommitdiff
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
authorYang Shi <yang.shi@linaro.org>2016-05-28 00:27:32 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-28 00:49:37 +0300
commitf65e91df25aa426289cbcb580ca3183e24979fb1 (patch)
tree65de5de39a825fb9618e31e2d219fe89069b6ba6 /mm/oom_kill.c
parentfe53ca54270a757f0a28ee6bf3a54d952b550ed0 (diff)
downloadlinux-f65e91df25aa426289cbcb580ca3183e24979fb1.tar.xz
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 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@linaro.org Signed-off-by: Yang Shi <yang.shi@linaro.org> Cc: Mel Gorman <mgorman@techsingularity.net> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions