]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
debugfs: leave freeing a symlink body until inode eviction
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 22 Feb 2015 03:05:11 +0000 (22:05 -0500)
committerJiri Slaby <jslaby@suse.cz>
Thu, 12 Mar 2015 16:31:19 +0000 (17:31 +0100)
commitf2331a68c372ea4c53e9d4aa7cda7631f8ce60fb
treefb2f1341be4c5af6d3a54448908ef908aef44811
parentfde713210941cb25defa34a7f48f2c3e1b7ac10d
debugfs: leave freeing a symlink body until inode eviction

commit 0db59e59299f0b67450c5db21f7f316c8fb04e84 upstream.

As it is, we have debugfs_remove() racing with symlink traversals.
Supply ->evict_inode() and do freeing there - inode will remain
pinned until we are done with the symlink body.

And rip the idiocy with checking if dentry is positive right after
we'd verified debugfs_positive(), which is a stronger check...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/debugfs/inode.c