diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-07-30 01:33:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-30 12:41:44 -0400 |
commit | 4ef1b0fd61333b3b81ebe29283898c6c84b15c9f (patch) | |
tree | 673b8a3a724c7da185a3507f63843aa694b43ec8 | |
parent | 55b6fd0162ace1e0f1b52c8c092565c115127ef6 (diff) |
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>
-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, | |||
1168 | mem = mem_cgroup_from_cont(cont); | 1168 | mem = mem_cgroup_from_cont(cont); |
1169 | old_mem = mem_cgroup_from_cont(old_cont); | 1169 | old_mem = mem_cgroup_from_cont(old_cont); |
1170 | 1170 | ||
1171 | if (mem == old_mem) | ||
1172 | goto out; | ||
1173 | |||
1174 | /* | 1171 | /* |
1175 | * Only thread group leaders are allowed to migrate, the mm_struct is | 1172 | * Only thread group leaders are allowed to migrate, the mm_struct is |
1176 | * in effect owned by the leader | 1173 | * in effect owned by the leader |