1
0
Fork 0

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>
hifive-unleashed-5.1
Trond Myklebust 2007-10-03 15:58:38 -04:00
parent d4d9cdcb47
commit 446e534985
1 changed files with 1 additions and 1 deletions

View File

@ -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: