bootmem: Reimplement __absent_pages_in_range() using for_each_mem_pfn_range()
authorTejun Heo <tj@kernel.org>
Tue, 12 Jul 2011 08:46:29 +0000 (10:46 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 14 Jul 2011 18:45:30 +0000 (11:45 -0700)
commit96e907d1360240d1958fe8ce3a3ac640733330d4
treeac1fec297f9b6d620a76dc0cd0476b74bc628a95
parent5dfe8660a3d7f1ee1265c3536433ee53da3f98a3
bootmem: Reimplement __absent_pages_in_range() using for_each_mem_pfn_range()

__absent_pages_in_range() was needlessly complex.  Reimplement it
using for_each_mem_pfn_range().

Also, update zone_absent_pages_in_node() such that it doesn't call
__absent_pages_in_range() with @zone_start_pfn which is larger than
@zone_end_pfn.

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