diff options
Diffstat (limited to 'mm/memory_hotplug.c')
-rw-r--r-- | mm/memory_hotplug.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 6fa7208bcd56..b63d7d1239df 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c | |||
@@ -1208,7 +1208,11 @@ static pg_data_t __ref *hotadd_new_pgdat(int nid, u64 start) | |||
1208 | 1208 | ||
1209 | arch_refresh_nodedata(nid, pgdat); | 1209 | arch_refresh_nodedata(nid, pgdat); |
1210 | } else { | 1210 | } else { |
1211 | /* Reset the nr_zones, order and classzone_idx before reuse */ | 1211 | /* |
1212 | * Reset the nr_zones, order and classzone_idx before reuse. | ||
1213 | * Note that kswapd will init kswapd_classzone_idx properly | ||
1214 | * when it starts in the near future. | ||
1215 | */ | ||
1212 | pgdat->nr_zones = 0; | 1216 | pgdat->nr_zones = 0; |
1213 | pgdat->kswapd_order = 0; | 1217 | pgdat->kswapd_order = 0; |
1214 | pgdat->kswapd_classzone_idx = 0; | 1218 | pgdat->kswapd_classzone_idx = 0; |