Skip to content

Commit

Permalink
NFS: Fix a bug in nfs_open_revalidate()
Browse files Browse the repository at this point in the history
We want to set the verifier when the call to nfs4_open_revalidate()
_succeeds_.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Oct 9, 2007
1 parent d4d9cdc commit 446e534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 446e534

Please sign in to comment.