cgroup: remove cgroup->parent
authorTejun Heo <tj@kernel.org>
Fri, 16 May 2014 17:22:48 +0000 (13:22 -0400)
committerTejun Heo <tj@kernel.org>
Fri, 16 May 2014 17:22:48 +0000 (13:22 -0400)
commitd51f39b05ce0008118c45945e681b20484990571
tree5330c7169c843832515e6e1f9bb0d964d8eda299
parent5877019d97ab827b808e8759c71ef8d31490907a
cgroup: remove cgroup->parent

cgroup->parent is redundant as cgroup->self.parent can also be used to
determine the parent cgroup and we're moving towards using
cgroup_subsys_states as the fundamental structural blocks.  This patch
introduces cgroup_parent() which follows cgroup->self.parent and
removes cgroup->parent.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
include/linux/cgroup.h
kernel/cgroup.c