Commit 00d8089c authored by Rik van Riel's avatar Rik van Riel Committed by Linus Torvalds

vmscan: fix get_scan_ratio() comment

Fix the old comment on the scan ratio calculations.
Signed-off-by: default avatarRik van Riel <riel@redhat.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8e324c19
...@@ -1389,9 +1389,9 @@ static void get_scan_ratio(struct zone *zone, struct scan_control *sc, ...@@ -1389,9 +1389,9 @@ static void get_scan_ratio(struct zone *zone, struct scan_control *sc,
file_prio = 200 - sc->swappiness; file_prio = 200 - sc->swappiness;
/* /*
* anon recent_rotated[0] * The amount of pressure on anon vs file pages is inversely
* %anon = 100 * ----------- / ----------------- * IO cost * proportional to the fraction of recently scanned pages on
* anon + file rotate_sum * each list that were recently referenced and in active use.
*/ */
ap = (anon_prio + 1) * (zone->recent_scanned[0] + 1); ap = (anon_prio + 1) * (zone->recent_scanned[0] + 1);
ap /= zone->recent_rotated[0] + 1; ap /= zone->recent_rotated[0] + 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment