memblock: Make memblock_alloc_[try_]nid() top-down
authorTejun Heo <tj@kernel.org>
Tue, 12 Jul 2011 08:46:33 +0000 (10:46 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 14 Jul 2011 18:45:34 +0000 (11:45 -0700)
commit34e1845548418e5cecee0568ba721e1f089c092c
tree85e9cafe7a9184fc0f5efd77964f1df04239c89f
parentf9b18db3b1cedc75e5d002a4d7097891c3399736
memblock: Make memblock_alloc_[try_]nid() top-down

NUMA aware memblock alloc functions - memblock_alloc_[try_]nid() -
weren't properly top-down because memblock_nid_range() scanned
forward.  This patch reverses memblock_nid_range(), renames it to
memblock_nid_range_rev() and updates related functions to implement
proper top-down allocation.

Signed-off-by: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/1310460395-30913-7-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>
mm/memblock.c