cgroup: add cgroup->id
authorTejun Heo <tj@kernel.org>
Mon, 19 Nov 2012 17:02:12 +0000 (09:02 -0800)
committerTejun Heo <tj@kernel.org>
Mon, 19 Nov 2012 17:02:12 +0000 (09:02 -0800)
commit0a950f65e1e64f4e82b4b5507773848ea88bcb8e
tree90106ea13abc3cfe9226dc0c7628ccad136f92b4
parent033fa1c5f5f73833598a0beb022c0048fb769dad
cgroup: add cgroup->id

With the introduction of generic cgroup hierarchy iterators, css_id is
being phased out.  It was unnecessarily complex, id'ing the wrong
thing (cgroups need IDs, not CSSes) and has other oddities like not
being available at ->css_alloc().

This patch adds cgroup->id, which is a simple per-hierarchy
ida-allocated ID which is assigned before ->css_alloc() and released
after ->css_free().

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