|
@@ -1246,7 +1246,8 @@ static void shrink_active_list(unsigned long nr_pages, struct zone *zone,
|
|
* This helps balance scan pressure between file and anonymous
|
|
* This helps balance scan pressure between file and anonymous
|
|
* pages in get_scan_ratio.
|
|
* pages in get_scan_ratio.
|
|
*/
|
|
*/
|
|
- zone->recent_rotated[!!file] += pgmoved;
|
|
|
|
|
|
+ if (scan_global_lru(sc))
|
|
|
|
+ zone->recent_rotated[!!file] += pgmoved;
|
|
|
|
|
|
/*
|
|
/*
|
|
* Move the pages to the [file or anon] inactive list.
|
|
* Move the pages to the [file or anon] inactive list.
|