From: Li Zefan Date: Wed, 30 Jul 2008 05:33:20 +0000 (-0700) Subject: memcg: remove redundant check in move_task() X-Git-Tag: v2.6.27-rc2~194 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4ef1b0fd61333b3b81ebe29283898c6c84b15c9f;p=linux-2.6-omap-h63xx.git memcg: remove redundant check in move_task() It's guaranteed by cgroup that old_cgrp != cgrp. Signed-off-by: Li Zefan Cc: Paul Menage Cc: Cedric Le Goater Cc: Balbir Singh Acked-by: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index fba566c5132..7056c3bdb47 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