aboutsummaryrefslogtreecommitdiffstats
path: root/mm/vmscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r--mm/vmscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 7592d8eb1148..879d034930c4 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1570,7 +1570,7 @@ static void shrink_zone(int priority, struct zone *zone,
1570 * Even if we did not try to evict anon pages at all, we want to 1570 * Even if we did not try to evict anon pages at all, we want to
1571 * rebalance the anon lru active/inactive ratio. 1571 * rebalance the anon lru active/inactive ratio.
1572 */ 1572 */
1573 if (inactive_anon_is_low(zone, sc)) 1573 if (inactive_anon_is_low(zone, sc) && nr_swap_pages > 0)
1574 shrink_active_list(SWAP_CLUSTER_MAX, zone, sc, priority, 0); 1574 shrink_active_list(SWAP_CLUSTER_MAX, zone, sc, priority, 0);
1575 1575
1576 throttle_vm_writeout(sc->gfp_mask); 1576 throttle_vm_writeout(sc->gfp_mask);