|
@@ -2835,8 +2835,10 @@ static bool allow_direct_reclaim(pg_data_t *pgdat)
|
|
|
|
|
|
for (i = 0; i <= ZONE_NORMAL; i++) {
|
|
for (i = 0; i <= ZONE_NORMAL; i++) {
|
|
zone = &pgdat->node_zones[i];
|
|
zone = &pgdat->node_zones[i];
|
|
- if (!managed_zone(zone) ||
|
|
|
|
- pgdat_reclaimable_pages(pgdat) == 0)
|
|
|
|
|
|
+ if (!managed_zone(zone))
|
|
|
|
+ continue;
|
|
|
|
+
|
|
|
|
+ if (!zone_reclaimable_pages(zone))
|
|
continue;
|
|
continue;
|
|
|
|
|
|
pfmemalloc_reserve += min_wmark_pages(zone);
|
|
pfmemalloc_reserve += min_wmark_pages(zone);
|