From: Rik van Riel Date: Wed, 19 Nov 2008 23:36:44 +0000 (-0800) Subject: vmscan: fix get_scan_ratio() comment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=00d8089c54867053a5aae062b765f257ca419e27;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git vmscan: fix get_scan_ratio() comment Fix the old comment on the scan ratio calculations. Signed-off-by: Rik van Riel Cc: KOSAKI Motohiro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index f83a7ed5c6c..7ea1440b53d 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, file_prio = 200 - sc->swappiness; /* - * anon recent_rotated[0] - * %anon = 100 * ----------- / ----------------- * IO cost - * anon + file rotate_sum + * The amount of pressure on anon vs file pages is inversely + * proportional to the fraction of recently scanned pages on + * each list that were recently referenced and in active use. */ ap = (anon_prio + 1) * (zone->recent_scanned[0] + 1); ap /= zone->recent_rotated[0] + 1;