diff options
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 5c8a412b43f4..7681d8ee04fe 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -897,7 +897,7 @@ shrink_caches(struct zone **zones, struct scan_control *sc) | |||
897 | for (i = 0; zones[i] != NULL; i++) { | 897 | for (i = 0; zones[i] != NULL; i++) { |
898 | struct zone *zone = zones[i]; | 898 | struct zone *zone = zones[i]; |
899 | 899 | ||
900 | if (zone->present_pages == 0) | 900 | if (!populated_zone(zone)) |
901 | continue; | 901 | continue; |
902 | 902 | ||
903 | if (!cpuset_zone_allowed(zone, __GFP_HARDWALL)) | 903 | if (!cpuset_zone_allowed(zone, __GFP_HARDWALL)) |
@@ -1069,7 +1069,7 @@ loop_again: | |||
1069 | for (i = pgdat->nr_zones - 1; i >= 0; i--) { | 1069 | for (i = pgdat->nr_zones - 1; i >= 0; i--) { |
1070 | struct zone *zone = pgdat->node_zones + i; | 1070 | struct zone *zone = pgdat->node_zones + i; |
1071 | 1071 | ||
1072 | if (zone->present_pages == 0) | 1072 | if (!populated_zone(zone)) |
1073 | continue; | 1073 | continue; |
1074 | 1074 | ||
1075 | if (zone->all_unreclaimable && | 1075 | if (zone->all_unreclaimable && |
@@ -1106,7 +1106,7 @@ scan: | |||
1106 | struct zone *zone = pgdat->node_zones + i; | 1106 | struct zone *zone = pgdat->node_zones + i; |
1107 | int nr_slab; | 1107 | int nr_slab; |
1108 | 1108 | ||
1109 | if (zone->present_pages == 0) | 1109 | if (!populated_zone(zone)) |
1110 | continue; | 1110 | continue; |
1111 | 1111 | ||
1112 | if (zone->all_unreclaimable && priority != DEF_PRIORITY) | 1112 | if (zone->all_unreclaimable && priority != DEF_PRIORITY) |
@@ -1258,7 +1258,7 @@ void wakeup_kswapd(struct zone *zone, int order) | |||
1258 | { | 1258 | { |
1259 | pg_data_t *pgdat; | 1259 | pg_data_t *pgdat; |
1260 | 1260 | ||
1261 | if (zone->present_pages == 0) | 1261 | if (!populated_zone(zone)) |
1262 | return; | 1262 | return; |
1263 | 1263 | ||
1264 | pgdat = zone->zone_pgdat; | 1264 | pgdat = zone->zone_pgdat; |