File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5257,11 +5257,6 @@ static void __meminit setup_zone_pageset(struct zone *zone)
5257
5257
zone -> pageset = alloc_percpu (struct per_cpu_pageset );
5258
5258
for_each_possible_cpu (cpu )
5259
5259
zone_pageset_init (zone , cpu );
5260
-
5261
- if (!zone -> zone_pgdat -> per_cpu_nodestats ) {
5262
- zone -> zone_pgdat -> per_cpu_nodestats =
5263
- alloc_percpu (struct per_cpu_nodestat );
5264
- }
5265
5260
}
5266
5261
5267
5262
/*
@@ -5270,10 +5265,15 @@ static void __meminit setup_zone_pageset(struct zone *zone)
5270
5265
*/
5271
5266
void __init setup_per_cpu_pageset (void )
5272
5267
{
5268
+ struct pglist_data * pgdat ;
5273
5269
struct zone * zone ;
5274
5270
5275
5271
for_each_populated_zone (zone )
5276
5272
setup_zone_pageset (zone );
5273
+
5274
+ for_each_online_pgdat (pgdat )
5275
+ pgdat -> per_cpu_nodestats =
5276
+ alloc_percpu (struct per_cpu_nodestat );
5277
5277
}
5278
5278
5279
5279
static noinline __ref
You can’t perform that action at this time.
0 commit comments