aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2006-09-26 02:31:51 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-26 11:48:51 -0400
commit8417bba4b151346ed475fcc923693c9e3be89063 (patch)
tree93d559e32bc76077c1f837aed09a5df56849c610 /mm/page_alloc.c
parentd00bcc98d7ec2c87391c9d9e1cca519ef64d33ef (diff)
[PATCH] Replace min_unmapped_ratio by min_unmapped_pages in struct zone
*_pages is a better description of the role of the variable. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index f7ea020c23ea..5da6bc4e0a6b 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2002,7 +2002,7 @@ static void __meminit free_area_init_core(struct pglist_data *pgdat,
2002 zone->spanned_pages = size; 2002 zone->spanned_pages = size;
2003 zone->present_pages = realsize; 2003 zone->present_pages = realsize;
2004#ifdef CONFIG_NUMA 2004#ifdef CONFIG_NUMA
2005 zone->min_unmapped_ratio = (realsize*sysctl_min_unmapped_ratio) 2005 zone->min_unmapped_pages = (realsize*sysctl_min_unmapped_ratio)
2006 / 100; 2006 / 100;
2007#endif 2007#endif
2008 zone->name = zone_names[j]; 2008 zone->name = zone_names[j];
@@ -2313,7 +2313,7 @@ int sysctl_min_unmapped_ratio_sysctl_handler(ctl_table *table, int write,
2313 return rc; 2313 return rc;
2314 2314
2315 for_each_zone(zone) 2315 for_each_zone(zone)
2316 zone->min_unmapped_ratio = (zone->present_pages * 2316 zone->min_unmapped_pages = (zone->present_pages *
2317 sysctl_min_unmapped_ratio) / 100; 2317 sysctl_min_unmapped_ratio) / 100;
2318 return 0; 2318 return 0;
2319} 2319}