浏览代码

NFS: Fix a typo in nfs_call_unlink()

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Trond Myklebust 17 年之前
父节点
当前提交
55b70a0300
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/nfs/unlink.c

+ 1 - 1
fs/nfs/unlink.c

@@ -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);