Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127574
b: refs/heads/master
c: 8870075
h: refs/heads/master
v: v3
  • Loading branch information
KAMEZAWA Hiroyuki authored and Linus Torvalds committed Jan 8, 2009
1 parent 96f5a99 commit ca159ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: a636b327f731143ccc544b966cfd8de6cb6d72c6
refs/heads/master: 887007561ae58628f03aa9046949747c04f63be8
16 changes: 8 additions & 8 deletions trunk/mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,17 +709,17 @@ static int __mem_cgroup_try_charge(struct mm_struct *mm,
* current usage of the cgroup before giving up
*
*/
if (!do_swap_account &&
res_counter_check_under_limit(&mem->res))
continue;
if (do_swap_account &&
res_counter_check_under_limit(&mem->memsw))
continue;
if (do_swap_account) {
if (res_counter_check_under_limit(&mem_over_limit->res) &&
res_counter_check_under_limit(&mem_over_limit->memsw))
continue;
} else if (res_counter_check_under_limit(&mem_over_limit->res))
continue;

if (!nr_retries--) {
if (oom) {
mem_cgroup_out_of_memory(mem, gfp_mask);
mem->last_oom_jiffies = jiffies;
mem_cgroup_out_of_memory(mem_over_limit, gfp_mask);
mem_over_limit->last_oom_jiffies = jiffies;
}
goto nomem;
}
Expand Down

0 comments on commit ca159ae

Please sign in to comment.