From: Li Zefan Date: Wed, 31 Jul 2013 01:50:50 +0000 (+0800) Subject: cgroup: convert cgroup_ida to cgroup_idr X-Git-Tag: v3.12-rc1~173^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e96ee8e981b5140a2bcc5fff0d5c0eef39a62ee;p=pandora-kernel.git cgroup: convert cgroup_ida to cgroup_idr This enables us to lookup a cgroup by its id. v4: - add a comment for idr_remove() in cgroup_offline_fn(). v3: - on success, idr_alloc() returns the id but not 0, so fix the BUG_ON() in cgroup_init(). - pass the right value to idr_alloc() so that the id for dummy cgroup is 0. Signed-off-by: Li Zefan Reviewed-by: Michal Hocko Signed-off-by: Tejun Heo --- Reading git-diff-tree failed