]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - mm/vmscan.c
memcg: reclaim shouldn't change zone->recent_rotated statistics
[mv-sheeva.git] / mm / vmscan.c
index d500b906746c9da3b0fd8e44796df9f8866ceef8..da7c3a2304a7d45d2434ef2aa209dc88b5c5cb4c 100644 (file)
@@ -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
         * 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.