nfs: do not do a LOOKUP after open
authorAlexandros Batsakis <batsakis@netapp.com>
Wed, 9 Dec 2009 09:50:13 +0000 (01:50 -0800)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 15 Dec 2009 18:50:21 +0000 (13:50 -0500)
Signed-off-by: Alexandros Batsakis <batsakis@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c

index d117a7befd466833ff7c6561ed7399584c5c34c0..297e23310efd4fc506eb3d7abd4c624293708b3c 100644 (file)
@@ -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);