Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145346
b: refs/heads/master
c: 46f7e60
h: refs/heads/master
v: v3
  • Loading branch information
Nikanth Karthikesan authored and Linus Torvalds committed May 29, 2009
1 parent c772e81 commit c77cbb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 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: f83a275dbc5ca1721143698e844243fcadfabf6a
refs/heads/master: 46f7e602fb32e02145ef14f8c0ca6d399f0a96b9
10 changes: 1 addition & 9 deletions trunk/mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,6 @@ static struct mem_cgroup *try_get_mem_cgroup_from_mm(struct mm_struct *mm)
return mem;
}

static bool mem_cgroup_is_obsolete(struct mem_cgroup *mem)
{
if (!mem)
return true;
return css_is_removed(&mem->css);
}


/*
* Call callback function against all cgroup under hierarchy tree.
*/
Expand Down Expand Up @@ -932,7 +924,7 @@ static int __mem_cgroup_try_charge(struct mm_struct *mm,
if (unlikely(!mem))
return 0;

VM_BUG_ON(!mem || mem_cgroup_is_obsolete(mem));
VM_BUG_ON(css_is_removed(&mem->css));

while (1) {
int ret;
Expand Down

0 comments on commit c77cbb0

Please sign in to comment.