cgroup: reorganize css init / exit paths
authorTejun Heo <tj@kernel.org>
Tue, 13 Aug 2013 15:01:55 +0000 (11:01 -0400)
committerTejun Heo <tj@kernel.org>
Tue, 13 Aug 2013 15:01:55 +0000 (11:01 -0400)
commit623f926b050e12b0f5e3a2f4d11c36e4ddd63541
treeda5df0064e57432decbe0bf93d01fde2fe013c40
parent73e80ed8007fc48a6deeb295ba37159fad274bd2
cgroup: reorganize css init / exit paths

css (cgroup_subsys_state) lifetime management is about to be
restructured.  In prepartion, make the following mostly trivial
changes.

* init_cgroup_css() is renamed to init_css() so that it's consistent
  with other css handling functions.

* alloc_css_id(), online_css() and offline_css() updated to take @css
  instead of cgroups and subsys IDs.

This patch doesn't make any functional changes.

v2: v1 merged two for_each_root_subsys() loops in cgroup_create() but
    Li Zefan pointed out that it breaks error path.  Dropped.

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