• Tejun Heo's avatar
    cgroup: update cgroup name handling · 8d7e6fb0
    Tejun Heo authored
    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: default avatarTejun Heo <tj@kernel.org>
    Acked-by: default avatarLi Zefan <lizefan@huawei.com>
    8d7e6fb0
cgroup.c 142 KB