Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320784
b: refs/heads/master
c: d845aa2
h: refs/heads/master
v: v3
  • Loading branch information
Kamezawa Hiroyuki authored and Linus Torvalds committed Aug 1, 2012
1 parent d8e34a3 commit 861c890
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 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: 59b8e85c26e77d236ebdd61866ffc5e69c5f531d
refs/heads/master: d845aa2c75bcff87dacf098378b5706b12d1588f
5 changes: 0 additions & 5 deletions trunk/mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -3653,8 +3653,6 @@ static int mem_cgroup_force_empty_list(struct mem_cgroup *memcg,
pc = lookup_page_cgroup(page);

ret = mem_cgroup_move_parent(page, pc, memcg, GFP_KERNEL);
if (ret == -ENOMEM || ret == -EINTR)
break;

if (ret == -EBUSY || ret == -EINVAL) {
/* found lock contention or "pc" is obsolete. */
Expand Down Expand Up @@ -3711,9 +3709,6 @@ static int mem_cgroup_force_empty(struct mem_cgroup *memcg, bool free_all)
}
mem_cgroup_end_move(memcg);
memcg_oom_recover(memcg);
/* it seems parent cgroup doesn't have enough mem */
if (ret == -ENOMEM)
goto try_to_free;
cond_resched();
/* "ret" should also be checked to ensure all lists are empty. */
} while (res_counter_read_u64(&memcg->res, RES_USAGE) > 0 || ret);
Expand Down

0 comments on commit 861c890

Please sign in to comment.