diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-09-27 04:50:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 11:26:13 -0400 |
commit | d5f541ed6e31518508c688912e7464facf253c87 (patch) | |
tree | 028d296306e247ca32ec5db398d365dcd70d26b7 /mm | |
parent | 765c4507af71c39aba21006bbd3ec809fe9714ff (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.c | 1 |
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; |