]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit8d7e6fb0a1db970ac3589f87af0f2a20ef46654b
treef6b10b105575da92908db304722450511e9cdf23
parentd427dfeb120b92c0c5e2ca9d1ec6952de67ebad9
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