Commit 4161a75e authored by Linus Torvalds's avatar Linus Torvalds

Remove extraneous dget/dput pair in vfs_unlink() that

confused the NFS client code wrt the exclusiveness of
a dentry getting removed.
parent 30034e56
...@@ -1590,7 +1590,6 @@ int vfs_unlink(struct inode *dir, struct dentry *dentry) ...@@ -1590,7 +1590,6 @@ int vfs_unlink(struct inode *dir, struct dentry *dentry)
DQUOT_INIT(dir); DQUOT_INIT(dir);
dget(dentry);
down(&dentry->d_inode->i_sem); down(&dentry->d_inode->i_sem);
if (d_mountpoint(dentry)) if (d_mountpoint(dentry))
error = -EBUSY; error = -EBUSY;
...@@ -1600,7 +1599,6 @@ int vfs_unlink(struct inode *dir, struct dentry *dentry) ...@@ -1600,7 +1599,6 @@ int vfs_unlink(struct inode *dir, struct dentry *dentry)
d_delete(dentry); d_delete(dentry);
} }
up(&dentry->d_inode->i_sem); up(&dentry->d_inode->i_sem);
dput(dentry);
if (!error) if (!error)
inode_dir_notify(dir, DN_DELETE); inode_dir_notify(dir, DN_DELETE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment