Commit ffa6a041 authored by Tejun Heo's avatar Tejun Heo Committed by Greg Kroah-Hartman
Browse files

cgroup: cgroup_rm_files() was calling simple_unlink() with the wrong inode



commit ce27e317 upstream.

While refactoring cgroup file removal path, 05ef1d7c "cgroup:
introduce struct cfent" incorrectly changed the @dir argument of
simple_unlink() to the inode of the file being deleted instead of that
of the containing directory.

The effect of this bug is minor - ctime and mtime of the parent
weren't properly updated on file deletion.

Fix it by using @cgrp->dentry->d_inode instead.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarAl Viro <viro@ZenIV.linux.org.uk>
Acked-by: default avatarLi Zefan <lizefan@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 05e4b43a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment