]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
pnfs: remove unnecessary field lgp->status
authorFred Isaman <iisaman@netapp.com>
Thu, 6 Jan 2011 11:36:19 +0000 (11:36 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 6 Jan 2011 19:46:30 +0000 (14:46 -0500)
Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
include/linux/nfs_xdr.h

index 18a4d5a9a4e9fc525fe50d1c1770276ffd89f9d4..28e175e74de2e42cd292421be367672da0e923fb 100644 (file)
@@ -5326,7 +5326,6 @@ static void nfs4_layoutget_done(struct rpc_task *task, void *calldata)
                        return;
                }
        }
-       lgp->status = task->tk_status;
        dprintk("<-- %s\n", __func__);
 }
 
@@ -5382,7 +5381,7 @@ int nfs4_proc_layoutget(struct nfs4_layoutget *lgp)
        status = nfs4_wait_for_completion_rpc_task(task);
        if (status != 0)
                goto out;
-       status = lgp->status;
+       status = task->tk_status;
        if (status != 0)
                goto out;
        status = pnfs_layout_process(lgp);
index 236e7e4b99a001d0071331c04481d65d57d57369..8fcc54267bba64f2c30be8ed73cbccec88bd0f5d 100644 (file)
@@ -223,7 +223,6 @@ struct nfs4_layoutget {
        struct nfs4_layoutget_args args;
        struct nfs4_layoutget_res res;
        struct pnfs_layout_segment **lsegpp;
-       int status;
 };
 
 struct nfs4_getdeviceinfo_args {