From: Andrew Morton Date: Fri, 9 Nov 2012 03:04:05 +0000 (+1100) Subject: mmvmscan-only-evict-file-pages-when-we-have-plenty-fix X-Git-Tag: next-20121113~6^2~236 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=77ef26b39eeabd38db64ae4ffb71b8a9ac0caee0;p=karo-tx-linux.git mmvmscan-only-evict-file-pages-when-we-have-plenty-fix adjust comment layout Cc: Rik van Riel Cc: Mel Gorman Cc: Johannes Weiner Signed-off-by: Andrew Morton --- diff --git a/mm/vmscan.c b/mm/vmscan.c index d6dd126085f8..6b0413eb6955 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -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;