Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292621
b: refs/heads/master
c: c38446c
h: refs/heads/master
i:
  292619: c5e6f91
v: v3
  • Loading branch information
Hillf Danton authored and Linus Torvalds committed Mar 22, 2012
1 parent 12a66de commit 83ccb0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 69c978232aaa99476f9bd002c2a29a84fa3779b5
refs/heads/master: c38446cc65e1f2b3eb8630c53943b94c4f65f670
7 changes: 6 additions & 1 deletion trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2112,7 +2112,12 @@ 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 && priority < DEF_PRIORITY)
if (nr_reclaimed >= nr_to_reclaim)
nr_to_reclaim = 0;
else
nr_to_reclaim -= nr_reclaimed;

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

0 comments on commit 83ccb0b

Please sign in to comment.