From: Al Viro Date: Sun, 22 Feb 2015 03:05:11 +0000 (-0500) Subject: debugfs: leave freeing a symlink body until inode eviction X-Git-Tag: fixes-v4.0-rc1~19^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0db59e59299f0b67450c5db21f7f316c8fb04e84;p=pandora-kernel.git debugfs: leave freeing a symlink body until inode eviction 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... Cc: stable@vger.kernel.org Signed-off-by: Al Viro --- Reading git-diff-tree failed