aboutsummaryrefslogtreecommitdiffstats
path: root/mm/nobootmem.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-07-12 09:58:07 +0200
committerH. Peter Anvin <hpa@linux.intel.com>2011-07-13 16:35:58 -0700
commit15fb09722df32b7685be1cbcac198bb556ddaffe (patch)
treecb010e80d2ecbfee08a38cf9e65c6ff5b1fa32bb /mm/nobootmem.c
parentbootmem: Fix __free_pages_bootmem() to use @order properly (diff)
downloadlinux-dev-15fb09722df32b7685be1cbcac198bb556ddaffe.tar.xz
linux-dev-15fb09722df32b7685be1cbcac198bb556ddaffe.zip
memblock: Use MEMBLOCK_ALLOC_ACCESSIBLE instead of ANYWHERE in memblock_alloc_try_nid()
After node affine allocation fails, memblock_alloc_try_nid() calls memblock_alloc_base() with @max_addr set to MEMBLOCK_ALLOC_ANYWHERE. This is inconsistent with memblock_alloc() and what the function's sole user - sparc/mm/init_64 - expects, although it doesn't make any difference as sparc64 doesn't have highmem and ACCESSIBLE equals ANYWHERE. This patch makes memblock_alloc_try_nid() use ACCESSIBLE instead of ANYWHERE. This isn't complete as node affine allocation doesn't consider memblock.current_limit. It will be handled with future changes. This patch doesn't introduce any behavior difference. Signed-off-by: Tejun Heo <tj@kernel.org> Link: http://lkml.kernel.org/r/1310457490-3356-4-git-send-email-tj@kernel.org Cc: Yinghai Lu <yinghai@kernel.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'mm/nobootmem.c')
0 files changed, 0 insertions, 0 deletions