summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-21 18:02:22 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-21 19:37:07 +0200
commit55b70a0300b873c0ec7ea6e33752af56f41250ce (patch)
tree0329a0fbb4bfd0aac97310eeab9be8394b4b8ab0 /fs/nfs
parentNFSv2: Ensure that the directory metadata gets revalidated on file create (diff)
downloadlinux-55b70a0300b873c0ec7ea6e33752af56f41250ce.tar.xz
linux-55b70a0300b873c0ec7ea6e33752af56f41250ce.zip
NFS: Fix a typo in nfs_call_unlink()
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-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)
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);