memblock: Reimplement memblock_enforce_memory_limit() using __memblock_remove()
authorTejun Heo <tj@kernel.org>
Thu, 8 Dec 2011 18:22:07 +0000 (10:22 -0800)
committerTejun Heo <tj@kernel.org>
Thu, 8 Dec 2011 18:22:07 +0000 (10:22 -0800)
commitc0ce8fef55896a2813a3d94e1b2d0e6d7fab6228
tree616396e0b08f0a41eafd7d4a10bd3b2fee5726c8
parenteb18f1b5bfb99b1d7d2f5d792e6ee5c9b7d89330
memblock: Reimplement memblock_enforce_memory_limit() using __memblock_remove()

With recent updates, the basic memblock operations are robust enough
that there's no reason for memblock_enfore_memory_limit() to directly
manipulate memblock region arrays.  Reimplement it using
__memblock_remove().

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Yinghai Lu <yinghai@kernel.org>
mm/memblock.c