aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2006-09-27 04:50:08 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-27 11:26:13 -0400
commitd5f541ed6e31518508c688912e7464facf253c87 (patch)
tree028d296306e247ca32ec5db398d365dcd70d26b7 /mm
parent765c4507af71c39aba21006bbd3ec809fe9714ff (diff)
[PATCH] Add node to zone for the NUMA case
Add the node in order to optimize zone_to_nid. Signed-off-by: Christoph Lameter <clameter@sgi.com> Acked-by: Paul Jackson <pj@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/page_alloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 4c76188b1681..d0432e44f77d 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2405,6 +2405,7 @@ static void __meminit free_area_init_core(struct pglist_data *pgdat,
2405 zone->spanned_pages = size; 2405 zone->spanned_pages = size;
2406 zone->present_pages = realsize; 2406 zone->present_pages = realsize;
2407#ifdef CONFIG_NUMA 2407#ifdef CONFIG_NUMA
2408 zone->node = nid;
2408 zone->min_unmapped_pages = (realsize*sysctl_min_unmapped_ratio) 2409 zone->min_unmapped_pages = (realsize*sysctl_min_unmapped_ratio)
2409 / 100; 2410 / 100;
2410 zone->min_slab_pages = (realsize * sysctl_min_slab_ratio) / 100; 2411 zone->min_slab_pages = (realsize * sysctl_min_slab_ratio) / 100;