]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmvmscan-only-evict-file-pages-when-we-have-plenty-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 9 Nov 2012 03:04:05 +0000 (14:04 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Nov 2012 05:15:23 +0000 (16:15 +1100)
adjust comment layout

Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c

index d6dd126085f8140cdcefdb7cdfff66b91a574eb2..6b0413eb6955e8c023520a190f36c49a59ebb1e0 100644 (file)
@@ -1679,9 +1679,11 @@ static void get_scan_count(struct lruvec *lruvec, struct scan_control *sc,
 
        if (global_reclaim(sc)) {
                free  = zone_page_state(zone, NR_FREE_PAGES);
-               /* If we have very few page cache pages,
-                  force-scan anon pages. */
                if (unlikely(file + free <= high_wmark_pages(zone))) {
+                       /*
+                        * If we have very few page cache pages, force-scan
+                        * anon pages.
+                        */
                        fraction[0] = 1;
                        fraction[1] = 0;
                        denominator = 1;