From: Trond Myklebust Date: Sun, 21 Oct 2007 16:02:22 +0000 (-0400) Subject: NFS: Fix a typo in nfs_call_unlink() X-Git-Tag: v2.6.24-rc1~113 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55b70a0300b873c0ec7ea6e33752af56f41250ce;p=linux-2.6 NFS: Fix a typo in nfs_call_unlink() Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/unlink.c b/fs/nfs/unlink.c index ce558c2e4d..233ad38161 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) if (parent == NULL) goto out_free; dir = parent->d_inode; - if (nfs_copy_dname(dentry, data) == 0) + if (nfs_copy_dname(dentry, data) != 0) goto out_dput; /* Non-exclusive lock protects against concurrent lookup() calls */ spin_lock(&dir->i_lock);