diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-06-08 22:39:16 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-10 05:31:44 -0400 |
commit | cc1a9d86ce989083703c4bdc11b75a87e1cc404a (patch) | |
tree | ee2b58df708b291f4a20311508cb26438647f82f /arch/x86/mm | |
parent | db3660c1905293b91653e07f7857576df71ebf28 (diff) |
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>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/discontig_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/discontig_32.c b/arch/x86/mm/discontig_32.c index a89ccf3d4c14..489605bab85a 100644 --- a/arch/x86/mm/discontig_32.c +++ b/arch/x86/mm/discontig_32.c | |||
@@ -282,7 +282,7 @@ static unsigned long calculate_numa_remap_pages(void) | |||
282 | 282 | ||
283 | node_end_pfn[nid] -= size; | 283 | node_end_pfn[nid] -= size; |
284 | node_remap_start_pfn[nid] = node_end_pfn[nid]; | 284 | node_remap_start_pfn[nid] = node_end_pfn[nid]; |
285 | shrink_active_range(nid, old_end_pfn, node_end_pfn[nid]); | 285 | shrink_active_range(nid, node_end_pfn[nid]); |
286 | } | 286 | } |
287 | printk("Reserving total of %ld pages for numa KVA remap\n", | 287 | printk("Reserving total of %ld pages for numa KVA remap\n", |
288 | reserve_pages); | 288 | reserve_pages); |