]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: introduce cgroup_subsys->legacy_name
authorTejun Heo <tj@kernel.org>
Tue, 18 Aug 2015 20:58:16 +0000 (13:58 -0700)
committerTejun Heo <tj@kernel.org>
Tue, 18 Aug 2015 20:58:16 +0000 (13:58 -0700)
commite1a218278682392876445e0d3cdd3860b15da02b
treebb9fb11d59686da511a018f318d9d826727c009f
parent147efa230c747913732fc91616fb7c7384e7e35b
cgroup: introduce cgroup_subsys->legacy_name

This allows cgroup subsystems to use a different name on the unified
hierarchy.  cgroup_subsys->name is used on the unified hierarchy,
->legacy_name elsewhere.  If ->legacy_name is not explicitly set, it's
automatically set to ->name and the userland visible behavior remains
unchanged.

v2: Make parse_cgroupfs_options() only consider ->legacy_name as mount
    options are used only on legacy hierarchies.  Suggested by Li
    Zefan.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: cgroups@vger.kernel.org
include/linux/cgroup-defs.h
kernel/cgroup.c