mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
memcg: remove redundant check in move_task()
It's guaranteed by cgroup that old_cgrp != cgrp. Signed-off-by: Li Zefan <[email protected]> Cc: Paul Menage <[email protected]> Cc: Cedric Le Goater <[email protected]> Cc: Balbir Singh <[email protected]> Acked-by: KAMEZAWA Hiroyuki <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
55b6fd0162
commit
4ef1b0fd61
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue