Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299067
b: refs/heads/master
c: 41c9308
h: refs/heads/master
i:
  299065: 50e9acc
  299063: 88e0b11
v: v3
  • Loading branch information
Ying Han authored and Linus Torvalds committed Apr 12, 2012
1 parent c63fa7b commit 784ce4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: 66aebce747eaf9bc456bf1f1b217d8db843031d0
refs/heads/master: 41c93088127df2579e8ca64010929ec9e41d5543
7 changes: 1 addition & 6 deletions trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2107,12 +2107,7 @@ static void shrink_mem_cgroup_zone(int priority, struct mem_cgroup_zone *mz,
* with multiple processes reclaiming pages, the total
* freeing target can get unreasonably large.
*/
if (nr_reclaimed >= nr_to_reclaim)
nr_to_reclaim = 0;
else
nr_to_reclaim -= nr_reclaimed;

if (!nr_to_reclaim && priority < DEF_PRIORITY)
if (nr_reclaimed >= nr_to_reclaim && priority < DEF_PRIORITY)
break;
}
blk_finish_plug(&plug);
Expand Down

0 comments on commit 784ce4d

Please sign in to comment.