]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: replace task_cgroup_path_from_hierarchy() with task_cgroup_path()
authorTejun Heo <tj@kernel.org>
Thu, 11 Jul 2013 23:34:48 +0000 (16:34 -0700)
committerTejun Heo <tj@kernel.org>
Fri, 12 Jul 2013 19:49:05 +0000 (12:49 -0700)
commitfa72c31cef549e47b6ff71b2a408c3eb9633e9e1
tree55dae8f32f7a0a64ed6b665497e12414fb6d3103
parentb468a034067b00997f8f7a675f5fc9fae5434f30
cgroup: replace task_cgroup_path_from_hierarchy() with task_cgroup_path()

task_cgroup_path_from_hierarchy() was added for the planned new users
and none of the currently planned users wants to know about multiple
hierarchies.  This patch drops the multiple hierarchy part and makes
it always return the path in the first non-dummy hierarchy.

As unified hierarchy will always have id 1, this is guaranteed to
return the path for the unified hierarchy if mounted; otherwise, it
will return the path from the hierarchy which happens to occupy the
lowest hierarchy id, which will usually be the first hierarchy mounted
after boot.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Cc: Lennart Poettering <lennart@poettering.net>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Jan Kaluža <jkaluza@redhat.com>
include/linux/cgroup.h
kernel/cgroup.c