NFS: Fix a bug in nfs_open_revalidate()
We want to set the verifier when the call to nfs4_open_revalidate()
_succeeds_.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index 166a833..d58bfb8 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -1078,7 +1078,7 @@
lock_kernel();
verifier = nfs_save_change_attribute(dir);
ret = nfs4_open_revalidate(dir, dentry, openflags, nd);
- if (!ret)
+ if (ret == 1)
nfs_set_verifier(dentry, verifier);
unlock_kernel();
out: