cgroup: add cgroup->dummy_css
commit67f4c36f83455b253445b2cb28ac9a2c4f85d99a
authorTejun Heo <tj@kernel.org>
Fri, 9 Aug 2013 00:11:24 +0000 (8 20:11 -0400)
committerTejun Heo <tj@kernel.org>
Fri, 9 Aug 2013 00:11:24 +0000 (8 20:11 -0400)
tree3c7aecc6fc830799cf36716ea64583cc10cb9d40
parentf7d58818ba4249f04a83b73aaac135640050bb4f
cgroup: add cgroup->dummy_css

cgroup subsystem API is being converted to use css
(cgroup_subsys_state) as the main handle, which makes things a bit
awkward for subsystem agnostic core features - the "cgroup.*"
interface files and various iterations - a bit awkward as they don't
have a css to use.

This patch adds cgroup->dummy_css which has NULL ->ss and whose only
role is pointing back to the cgroup.  This will be used to support
subsystem agnostic features on the coming css based API.

css_parent() is updated to handle dummy_css's.  Note that css will
soon grow its own ->parent field and css_parent() will be made
trivial.

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