Skip to content
Snippets Groups Projects
Commit 55b70a03 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: Fix a typo in nfs_call_unlink()

parent bad2a524
Branches
Tags
No related merge requests found
...@@ -171,7 +171,7 @@ static int nfs_call_unlink(struct dentry *dentry, struct nfs_unlinkdata *data) ...@@ -171,7 +171,7 @@ static int nfs_call_unlink(struct dentry *dentry, struct nfs_unlinkdata *data)
if (parent == NULL) if (parent == NULL)
goto out_free; goto out_free;
dir = parent->d_inode; dir = parent->d_inode;
if (nfs_copy_dname(dentry, data) == 0) if (nfs_copy_dname(dentry, data) != 0)
goto out_dput; goto out_dput;
/* Non-exclusive lock protects against concurrent lookup() calls */ /* Non-exclusive lock protects against concurrent lookup() calls */
spin_lock(&dir->i_lock); spin_lock(&dir->i_lock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment