diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-07-30 07:33:20 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-30 18:41:44 +0200 |
commit | 4ef1b0fd61333b3b81ebe29283898c6c84b15c9f (patch) | |
tree | 673b8a3a724c7da185a3507f63843aa694b43ec8 /mm | |
parent | cgroup: uninline cgroup_has_css_refs() (diff) | |
download | linux-4ef1b0fd61333b3b81ebe29283898c6c84b15c9f.tar.xz linux-4ef1b0fd61333b3b81ebe29283898c6c84b15c9f.zip |
memcg: remove redundant check in move_task()
It's guaranteed by cgroup that old_cgrp != cgrp.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/memcontrol.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index fba566c51322..7056c3bdb478 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -1168,9 +1168,6 @@ static void mem_cgroup_move_task(struct cgroup_subsys *ss, mem = mem_cgroup_from_cont(cont); old_mem = mem_cgroup_from_cont(old_cont); - if (mem == old_mem) - goto out; - /* * Only thread group leaders are allowed to migrate, the mm_struct is * in effect owned by the leader |