bootmem: Use for_each_mem_pfn_range() in page_alloc.c
authorTejun Heo <tj@kernel.org>
Tue, 12 Jul 2011 08:46:30 +0000 (10:46 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 14 Jul 2011 18:45:31 +0000 (11:45 -0700)
commitc13291a536b835b2ab278ab201f2cb1ce22f2785
tree6bb3a2fd47e22d75308314b14f3a0f0a4d338141
parent96e907d1360240d1958fe8ce3a3ac640733330d4
bootmem: Use for_each_mem_pfn_range() in page_alloc.c

The previous patch added for_each_mem_pfn_range() which is more
versatile than for_each_active_range_index_in_nid().  This patch
replaces for_each_active_range_index_in_nid() and open coded
early_node_map[] walks with for_each_mem_pfn_range().

All conversions in this patch are straight-forward and shouldn't cause
any functional difference.  After the conversions,
for_each_active_range_index_in_nid() doesn't have any user left and is
removed.

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