aboutsummaryrefslogtreecommitdiffstats
path: root/mm/vmscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r--mm/vmscan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index e219b47fc50b..cad5d528a6f0 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -971,7 +971,7 @@ static unsigned long isolate_pages_global(unsigned long nr,
971 if (file) 971 if (file)
972 lru += LRU_FILE; 972 lru += LRU_FILE;
973 return isolate_lru_pages(nr, &z->lru[lru].list, dst, scanned, order, 973 return isolate_lru_pages(nr, &z->lru[lru].list, dst, scanned, order,
974 mode, !!file); 974 mode, file);
975} 975}
976 976
977/* 977/*
@@ -1209,7 +1209,7 @@ static unsigned long shrink_inactive_list(unsigned long max_scan,
1209 lru = page_lru(page); 1209 lru = page_lru(page);
1210 add_page_to_lru_list(zone, page, lru); 1210 add_page_to_lru_list(zone, page, lru);
1211 if (is_active_lru(lru)) { 1211 if (is_active_lru(lru)) {
1212 int file = !!is_file_lru(lru); 1212 int file = is_file_lru(lru);
1213 reclaim_stat->recent_rotated[file]++; 1213 reclaim_stat->recent_rotated[file]++;
1214 } 1214 }
1215 if (!pagevec_add(&pvec, page)) { 1215 if (!pagevec_add(&pvec, page)) {
@@ -1319,7 +1319,7 @@ static void shrink_active_list(unsigned long nr_pages, struct zone *zone,
1319 if (scanning_global_lru(sc)) { 1319 if (scanning_global_lru(sc)) {
1320 zone->pages_scanned += pgscanned; 1320 zone->pages_scanned += pgscanned;
1321 } 1321 }
1322 reclaim_stat->recent_scanned[!!file] += nr_taken; 1322 reclaim_stat->recent_scanned[file] += nr_taken;
1323 1323
1324 __count_zone_vm_events(PGREFILL, zone, pgscanned); 1324 __count_zone_vm_events(PGREFILL, zone, pgscanned);
1325 if (file) 1325 if (file)
@@ -1372,7 +1372,7 @@ static void shrink_active_list(unsigned long nr_pages, struct zone *zone,
1372 * helps balance scan pressure between file and anonymous pages in 1372 * helps balance scan pressure between file and anonymous pages in
1373 * get_scan_ratio. 1373 * get_scan_ratio.
1374 */ 1374 */
1375 reclaim_stat->recent_rotated[!!file] += nr_rotated; 1375 reclaim_stat->recent_rotated[file] += nr_rotated;
1376 1376
1377 move_active_pages_to_lru(zone, &l_active, 1377 move_active_pages_to_lru(zone, &l_active,
1378 LRU_ACTIVE + file * LRU_FILE); 1378 LRU_ACTIVE + file * LRU_FILE);