Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127576
b: refs/heads/master
c: f9717d2
h: refs/heads/master
v: v3
  • Loading branch information
Nikanth Karthikesan authored and Linus Torvalds committed Jan 8, 2009
1 parent 0b6b242 commit 9b5106c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 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: 2c26fdd70c3094fa3e84caf9ef434911933d5477
refs/heads/master: f9717d28d673468883df8ac34b47268719ac5a3d
19 changes: 2 additions & 17 deletions trunk/mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -2008,25 +2008,10 @@ static void mem_cgroup_move_task(struct cgroup_subsys *ss,
struct cgroup *old_cont,
struct task_struct *p)
{
struct mm_struct *mm;
struct mem_cgroup *mem, *old_mem;

mm = get_task_mm(p);
if (mm == NULL)
return;

mem = mem_cgroup_from_cont(cont);
old_mem = mem_cgroup_from_cont(old_cont);

/*
* Only thread group leaders are allowed to migrate, the mm_struct is
* in effect owned by the leader
* FIXME: It's better to move charges of this process from old
* memcg to new memcg. But it's just on TODO-List now.
*/
if (!thread_group_leader(p))
goto out;

out:
mmput(mm);
}

struct cgroup_subsys mem_cgroup_subsys = {
Expand Down

0 comments on commit 9b5106c

Please sign in to comment.