aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/page_alloc.c2
-rw-r--r--mm/slab.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index f66538b3c31b..41737395bbcc 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2964,6 +2964,7 @@ void __init free_area_init_nodes(unsigned long *max_zone_pfn)
2964 early_node_map[i].end_pfn); 2964 early_node_map[i].end_pfn);
2965 2965
2966 /* Initialise every node */ 2966 /* Initialise every node */
2967 setup_nr_node_ids();
2967 for_each_online_node(nid) { 2968 for_each_online_node(nid) {
2968 pg_data_t *pgdat = NODE_DATA(nid); 2969 pg_data_t *pgdat = NODE_DATA(nid);
2969 free_area_init_node(nid, pgdat, NULL, 2970 free_area_init_node(nid, pgdat, NULL,
@@ -3189,7 +3190,6 @@ static int __init init_per_zone_pages_min(void)
3189 min_free_kbytes = 65536; 3190 min_free_kbytes = 65536;
3190 setup_per_zone_pages_min(); 3191 setup_per_zone_pages_min();
3191 setup_per_zone_lowmem_reserve(); 3192 setup_per_zone_lowmem_reserve();
3192 setup_nr_node_ids();
3193 return 0; 3193 return 0;
3194} 3194}
3195module_init(init_per_zone_pages_min) 3195module_init(init_per_zone_pages_min)
diff --git a/mm/slab.c b/mm/slab.c
index 70784b848b69..8fdaffa717ea 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1042,7 +1042,7 @@ static void *alternate_node_alloc(struct kmem_cache *, gfp_t);
1042static struct array_cache **alloc_alien_cache(int node, int limit) 1042static struct array_cache **alloc_alien_cache(int node, int limit)
1043{ 1043{
1044 struct array_cache **ac_ptr; 1044 struct array_cache **ac_ptr;
1045 int memsize = sizeof(void *) * MAX_NUMNODES; 1045 int memsize = sizeof(void *) * nr_node_ids;
1046 int i; 1046 int i;
1047 1047
1048 if (limit > 1) 1048 if (limit > 1)