aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/vmscan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index d500b906746c..da7c3a2304a7 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1246,7 +1246,8 @@ static void shrink_active_list(unsigned long nr_pages, struct zone *zone,
1246 * This helps balance scan pressure between file and anonymous 1246 * This helps balance scan pressure between file and anonymous
1247 * pages in get_scan_ratio. 1247 * pages in get_scan_ratio.
1248 */ 1248 */
1249 zone->recent_rotated[!!file] += pgmoved; 1249 if (scan_global_lru(sc))
1250 zone->recent_rotated[!!file] += pgmoved;
1250 1251
1251 /* 1252 /*
1252 * Move the pages to the [file or anon] inactive list. 1253 * Move the pages to the [file or anon] inactive list.