mm/bootmem.c: replace kzalloc() by kzalloc_node()
authorzijun_hu <zijun_hu@htc.com>
Fri, 7 Oct 2016 23:59:27 +0000 (16:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 8 Oct 2016 01:46:28 +0000 (18:46 -0700)
commit1d8bf926f8739bd35d054097907fef35d881e403
tree52b11ecb43cb53737a43a4233e284e5f2af8fdb5
parent2382705f22c1436a153800cf6051b08f0ea14838
mm/bootmem.c: replace kzalloc() by kzalloc_node()

In ___alloc_bootmem_node_nopanic(), replace kzalloc() by kzalloc_node()
in order to allocate memory within given node preferentially when slab
is available

Link: http://lkml.kernel.org/r/1f487f12-6af4-5e4f-a28c-1de2361cdcd8@zoho.com
Signed-off-by: zijun_hu <zijun_hu@htc.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/bootmem.c