]> 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>
Sat, 3 Nov 2012 00:42:20 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 Nov 2012 04:15:11 +0000 (15: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 5abb92e32afb576f690734f11afea9d833600120..4db9335629855e89af8758ae23c83e6721d95627 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;