]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - kernel/cgroup.c
cgroup: move cgroup->sibling and ->children into cgroup_subsys_state
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)
commitd5c419b68e368fdd9f1857bf8d4bb4480edb9b80
tree6d33da7872654ff796b103f3e1d49ec28025a157
parentd51f39b05ce0008118c45945e681b20484990571
cgroup: move cgroup->sibling and ->children into cgroup_subsys_state

We're moving towards using cgroup_subsys_states as the fundamental
structural blocks.  Let's move cgroup->sibling and ->children into
cgroup_subsys_state.  This is pure move without functional change and
only cgroup->self's fields are actually used.  Other csses will make
use of the fields later.

While at it, update init_and_link_css() so that it zeroes the whole
css before initializing it and remove explicit zeroing of ->flags.

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