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 /include/linux/mm.h | |
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 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index c31a9cd2a30e..7cbd949f2516 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -997,8 +997,7 @@ extern void free_area_init_node(int nid, pg_data_t *pgdat, | |||
997 | extern void free_area_init_nodes(unsigned long *max_zone_pfn); | 997 | extern void free_area_init_nodes(unsigned long *max_zone_pfn); |
998 | extern void add_active_range(unsigned int nid, unsigned long start_pfn, | 998 | extern void add_active_range(unsigned int nid, unsigned long start_pfn, |
999 | unsigned long end_pfn); | 999 | unsigned long end_pfn); |
1000 | extern void shrink_active_range(unsigned int nid, unsigned long old_end_pfn, | 1000 | extern void shrink_active_range(unsigned int nid, unsigned long new_end_pfn); |
1001 | unsigned long new_end_pfn); | ||
1002 | extern void push_node_boundaries(unsigned int nid, unsigned long start_pfn, | 1001 | extern void push_node_boundaries(unsigned int nid, unsigned long start_pfn, |
1003 | unsigned long end_pfn); | 1002 | unsigned long end_pfn); |
1004 | extern void remove_all_active_ranges(void); | 1003 | extern void remove_all_active_ranges(void); |