提交 446e5349 编写于 作者: T Trond Myklebust

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: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 d4d9cdcb
...@@ -1078,7 +1078,7 @@ static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd) ...@@ -1078,7 +1078,7 @@ static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd)
lock_kernel(); lock_kernel();
verifier = nfs_save_change_attribute(dir); verifier = nfs_save_change_attribute(dir);
ret = nfs4_open_revalidate(dir, dentry, openflags, nd); ret = nfs4_open_revalidate(dir, dentry, openflags, nd);
if (!ret) if (ret == 1)
nfs_set_verifier(dentry, verifier); nfs_set_verifier(dentry, verifier);
unlock_kernel(); unlock_kernel();
out: out:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册