]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6df93457ad1406d6acf886d4c6027b2d9aab5572
tree3878362e74b45e486bab5e6398acec5bb775e6cf
parentea31727f56c253823d3723bba39f3c1d7e9d707e
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