aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/unlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/unlink.c b/fs/nfs/unlink.c
index ce558c2e4d53..233ad38161f9 100644
--- a/fs/nfs/unlink.c
+++ b/fs/nfs/unlink.c
@@ -171,7 +171,7 @@ static int nfs_call_unlink(struct dentry *dentry, struct nfs_unlinkdata *data)
171 if (parent == NULL) 171 if (parent == NULL)
172 goto out_free; 172 goto out_free;
173 dir = parent->d_inode; 173 dir = parent->d_inode;
174 if (nfs_copy_dname(dentry, data) == 0) 174 if (nfs_copy_dname(dentry, data) != 0)
175 goto out_dput; 175 goto out_dput;
176 /* Non-exclusive lock protects against concurrent lookup() calls */ 176 /* Non-exclusive lock protects against concurrent lookup() calls */
177 spin_lock(&dir->i_lock); 177 spin_lock(&dir->i_lock);