Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 446e5349 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent d4d9cdcb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: