]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: dentry_unhash immediately prior to rmdir
authorSage Weil <sage@newdream.net>
Tue, 24 May 2011 20:06:04 +0000 (13:06 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 26 May 2011 11:26:46 +0000 (07:26 -0400)
commit7fa775fb5da7ba535c8efcf99f9bcc36ce751072
tree5554ad59665d62ebc36ed16d5e13b0badea46a69
parenta17e320561d0cef49fa5f85d576623c5e98d6ffa
vfs: dentry_unhash immediately prior to rmdir

This presumes that there is no reason to unhash a dentry if we fail because
it is a mountpoint or the LSM check fails, and that the LSM checks do not
depend on the dentry being unhashed.

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c