diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-10-03 15:58:38 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-10-09 17:19:30 -0400 |
commit | 446e534985bada0ad7451c08cf213c06695f9b67 (patch) | |
tree | 6f364b49ad9f6bc2c82ce28ce4fbd75aee372286 /fs/nfs | |
parent | d4d9cdcb470784df76304f75d0ce88f20f15fa6a (diff) | |
download | linux-stable-446e534985bada0ad7451c08cf213c06695f9b67.tar.gz linux-stable-446e534985bada0ad7451c08cf213c06695f9b67.tar.bz2 linux-stable-446e534985bada0ad7451c08cf213c06695f9b67.zip |
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>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 166a833be661..d58bfb81354e 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -1078,7 +1078,7 @@ static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd) 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: |