memcg: restructure mem_cgroup_can_attach()
authorTejun Heo <tj@kernel.org>
Tue, 8 Sep 2015 22:01:10 +0000 (15:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 8 Sep 2015 22:35:28 +0000 (15:35 -0700)
commit9f2115f93b88e5e8d48b87b153e36a537afb58cb
tree9e978b13e9fb24d33908ca6e9a066c3645d9f2fd
parent64219994898c8689c3d57668996f476f8c2d398c
memcg: restructure mem_cgroup_can_attach()

Restructure it to lower nesting level and help the planned threadgroup
leader iteration changes.

This is pure reorganization.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Michal Hocko <mhocko@suse.cz>
Reviewed-by: Vladimir Davydov <vdavydov@parallels.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c