cgroup: make hierarchy_id use cyclic idr
authorTejun Heo <tj@kernel.org>
Sun, 14 Apr 2013 18:36:58 +0000 (11:36 -0700)
committerTejun Heo <tj@kernel.org>
Tue, 14 May 2013 18:42:07 +0000 (11:42 -0700)
commit1a574231669f8c3065c83974e9557fcbbd94b8a6
tree1f2f0bc767f0fae3c5e5c28e3274733d4bf0fb07
parent54e7b4eb15fc4354d5ada5469e3db4a220ddb3ed
cgroup: make hierarchy_id use cyclic idr

We want to be able to lookup a hierarchy from its id and cyclic
allocation is a whole lot simpler with idr.  Convert to idr and use
idr_alloc_cyclc().

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