mm, x86: shrink_active_range() should check all
authorYinghai Lu <yhlu.kernel@gmail.com>
Mon, 9 Jun 2008 02:39:16 +0000 (19:39 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 10 Jun 2008 09:31:44 +0000 (11:31 +0200)
commitcc1a9d86ce989083703c4bdc11b75a87e1cc404a
treeee2b58df708b291f4a20311508cb26438647f82f
parentdb3660c1905293b91653e07f7857576df71ebf28
mm, x86: shrink_active_range() should check all

Now we are using register_e820_active_regions() instead of
add_active_range() directly. So end_pfn could be different between the
value in early_node_map to node_end_pfn.

So we need to make shrink_active_range() smarter.

shrink_active_range() is a generic MM function in mm/page_alloc.c but
it is only used on 32-bit x86. Should we move it back to some file in
arch/x86?

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/discontig_32.c
include/linux/mm.h
mm/page_alloc.c