From: Tejun Heo Date: Thu, 8 Dec 2011 18:22:07 +0000 (-0800) Subject: memblock: Reimplement __memblock_remove() using memblock_isolate_range() X-Git-Tag: v3.3-rc1~195^2^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=719361809fde9dbe9ccc4cf71f9fa9add5fa8bf9;p=pandora-kernel.git memblock: Reimplement __memblock_remove() using memblock_isolate_range() __memblock_remove()'s open coded region manipulation can be trivially replaced with memblock_islate_range(). This increases code sharing and eases improving region tracking. This pulls memblock_isolate_range() out of HAVE_MEMBLOCK_NODE_MAP. Make it use memblock_get_region_node() instead of assuming rgn->nid is available. -v2: Fixed build failure on !HAVE_MEMBLOCK_NODE_MAP caused by direct rgn->nid access. Signed-off-by: Tejun Heo Cc: Benjamin Herrenschmidt Cc: Yinghai Lu --- Reading git-diff-tree failed