Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339308
b: refs/heads/master
c: d842301
h: refs/heads/master
v: v3
  • Loading branch information
Michal Hocko authored and Tejun Heo committed Oct 29, 2012
1 parent 4d78a36 commit 72c1557
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: c26251f9f06d27d1941229d237aca44a0e7b4e42
refs/heads/master: d842301181d9a4486aa24720ed4f96018b213292
6 changes: 3 additions & 3 deletions trunk/mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -2715,9 +2715,7 @@ static int mem_cgroup_move_parent(struct page *page,
unsigned long uninitialized_var(flags);
int ret;

/* Is ROOT ? */
if (mem_cgroup_is_root(child))
return -EINVAL;
VM_BUG_ON(mem_cgroup_is_root(child));

ret = -EBUSY;
if (!get_page_unless_zero(page))
Expand Down Expand Up @@ -3823,6 +3821,8 @@ static int mem_cgroup_force_empty_write(struct cgroup *cont, unsigned int event)
struct mem_cgroup *memcg = mem_cgroup_from_cont(cont);
int ret;

if (mem_cgroup_is_root(memcg))
return -EINVAL;
css_get(&memcg->css);
ret = mem_cgroup_force_empty(memcg);
css_put(&memcg->css);
Expand Down

0 comments on commit 72c1557

Please sign in to comment.