]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: update cgroup name handling
authorTejun Heo <tj@kernel.org>
Tue, 11 Feb 2014 16:52:48 +0000 (11:52 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 11 Feb 2014 16:52:48 +0000 (11:52 -0500)
commitbbe7947345c1c1ebbce7061c8ad7680e3d119d98
treef6b10b105575da92908db304722450511e9cdf23
parentf11153a9930fa61fe24dd4cda391f954b8d61d6b
cgroup: update cgroup name handling

Straightforward updates to cgroup name handling in preparation of
kernfs conversion.

* cgroup_alloc_name() is updated to take const char * isntead of
  dentry * for name source.

* cgroup name formatting is separated out into cgroup_file_name().
  While at it, buffer length protection is added.

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