cgroup: move cgroup->serial_nr into cgroup_subsys_state
authorTejun Heo <tj@kernel.org>
Fri, 16 May 2014 17:22:49 +0000 (13:22 -0400)
committerTejun Heo <tj@kernel.org>
Fri, 16 May 2014 17:22:49 +0000 (13:22 -0400)
commit0cb51d71c1fa9234afe4213089844be76ec1765a
tree3878362e74b45e486bab5e6398acec5bb775e6cf
parent1fed1b2e36ba1aa0257004a97e75bbdb70f216b5
cgroup: move cgroup->serial_nr into cgroup_subsys_state

We're moving towards using cgroup_subsys_states as the fundamental
structural blocks.  All csses including the cgroup->self and actual
ones now form trees through css->children and ->sibling which follow
the same rules as what cgroup->children and ->sibling followed.  This
patch moves cgroup->serial_nr which is used to implement css iteration
into css.

Note that all csses, regardless of their types, allocate their serial
numbers from the same monotonically increasing counter.  This doesn't
affect the ordering needed by css iteration or cause any other
material behavior changes.  This will be used to update css iteration.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
include/linux/cgroup.h
kernel/cgroup.c
This page took 0.032076 seconds and 5 git commands to generate.