Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119198
b: refs/heads/master
c: 00d8089
h: refs/heads/master
v: v3
  • Loading branch information
Rik van Riel authored and Linus Torvalds committed Nov 20, 2008
1 parent b6b9e4f commit 5e537e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e324c19f57cc05922e9cc0f338b58108da45539
refs/heads/master: 00d8089c54867053a5aae062b765f257ca419e27
6 changes: 3 additions & 3 deletions trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5e537e0

Please sign in to comment.