mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
nfs: do not do a LOOKUP after open
Signed-off-by: Alexandros Batsakis <batsakis@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
3bfb0fc591
commit
0f7e720694
1 changed files with 0 additions and 3 deletions
|
@ -1436,9 +1436,6 @@ static int _nfs4_proc_open(struct nfs4_opendata *data)
|
|||
if (status != 0 || !data->rpc_done)
|
||||
return status;
|
||||
|
||||
if (o_res->fh.size == 0)
|
||||
_nfs4_proc_lookup(dir, o_arg->name, &o_res->fh, o_res->f_attr);
|
||||
|
||||
if (o_arg->open_flags & O_CREAT) {
|
||||
update_changeattr(dir, &o_res->cinfo);
|
||||
nfs_post_op_update_inode(dir, o_res->dir_attr);
|
||||
|
|
Loading…
Reference in a new issue