From: Li Zefan Date: Wed, 31 Jul 2013 01:51:31 +0000 (+0800) Subject: cgroup: implement cgroup_from_id() X-Git-Tag: v3.12-rc1~173^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e14880f7bb7e0dc0933af304998371dd543ceb40;p=pandora-kernel.git cgroup: implement cgroup_from_id() This will be used as a replacement for css_lookup(). There's a difference with cgroup id and css id. cgroup id starts with 0, while css id starts with 1. v4: - also check if cggroup_mutex is held. - make it an inline function. Signed-off-by: Li Zefan Reviewed-by: Michal Hocko Signed-off-by: Tejun Heo --- Reading git-diff-tree failed