aboutsummaryrefslogtreecommitdiffstats
path: root/mm/vmscan.c
diff options
context:
space:
mode:
authorRik van Riel <riel@redhat.com>2008-11-19 18:36:44 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2008-11-19 21:49:59 -0500
commit00d8089c54867053a5aae062b765f257ca419e27 (patch)
treea976481b5d503fde553b8816edb01f310f3a505a /mm/vmscan.c
parent8e324c19f57cc05922e9cc0f338b58108da45539 (diff)
vmscan: fix get_scan_ratio() comment
Fix the old comment on the scan ratio calculations. Signed-off-by: Rik van Riel <riel@redhat.com> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r--mm/vmscan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index f83a7ed5c6c4..7ea1440b53db 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1389,9 +1389,9 @@ static void get_scan_ratio(struct zone *zone, struct scan_control *sc,
1389 file_prio = 200 - sc->swappiness; 1389 file_prio = 200 - sc->swappiness;
1390 1390
1391 /* 1391 /*
1392 * anon recent_rotated[0] 1392 * The amount of pressure on anon vs file pages is inversely
1393 * %anon = 100 * ----------- / ----------------- * IO cost 1393 * proportional to the fraction of recently scanned pages on
1394 * anon + file rotate_sum 1394 * each list that were recently referenced and in active use.
1395 */ 1395 */
1396 ap = (anon_prio + 1) * (zone->recent_scanned[0] + 1); 1396 ap = (anon_prio + 1) * (zone->recent_scanned[0] + 1);
1397 ap /= zone->recent_rotated[0] + 1; 1397 ap /= zone->recent_rotated[0] + 1;