]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - mm/page_alloc.c
[PATCH] namespaces: exit_task_namespaces() invalidates nsproxy
[mv-sheeva.git] / mm / page_alloc.c
index d0432e44f77d9e29a27a82362e7258f0b34c2f38..4f59d90b81e65a314e0433dc61371b785b3df61f 100644 (file)
@@ -1591,7 +1591,7 @@ static int __meminit __build_all_zonelists(void *dummy)
 void __meminit build_all_zonelists(void)
 {
        if (system_state == SYSTEM_BOOTING) {
-               __build_all_zonelists(0);
+               __build_all_zonelists(NULL);
                cpuset_init_current_mems_allowed();
        } else {
                /* we have to stop all cpus to guaranntee there is no user
@@ -1829,6 +1829,9 @@ static int __cpuinit process_zones(int cpu)
 
        for_each_zone(zone) {
 
+               if (!populated_zone(zone))
+                       continue;
+
                zone_pcp(zone, cpu) = kmalloc_node(sizeof(struct per_cpu_pageset),
                                         GFP_KERNEL, cpu_to_node(cpu));
                if (!zone_pcp(zone, cpu))