Skip to content

Commit 55b70a0

Browse files
Trond MyklebustTrond Myklebust
authored andcommitted
NFS: Fix a typo in nfs_call_unlink()
Signed-off-by: Trond Myklebust <[email protected]>
1 parent bad2a52 commit 55b70a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/unlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static int nfs_call_unlink(struct dentry *dentry, struct nfs_unlinkdata *data)
171171
if (parent == NULL)
172172
goto out_free;
173173
dir = parent->d_inode;
174-
if (nfs_copy_dname(dentry, data) == 0)
174+
if (nfs_copy_dname(dentry, data) != 0)
175175
goto out_dput;
176176
/* Non-exclusive lock protects against concurrent lookup() calls */
177177
spin_lock(&dir->i_lock);

0 commit comments

Comments
 (0)