Commit daaa82d1 authored by Fred Isaman's avatar Fred Isaman Committed by Trond Myklebust

pnfs: remove unnecessary field lgp->status

Signed-off-by: default avatarFred Isaman <iisaman@netapp.com>
Signed-off-by: default avatarBenny Halevy <bhalevy@panasas.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 52fabd73
...@@ -5326,7 +5326,6 @@ static void nfs4_layoutget_done(struct rpc_task *task, void *calldata) ...@@ -5326,7 +5326,6 @@ static void nfs4_layoutget_done(struct rpc_task *task, void *calldata)
return; return;
} }
} }
lgp->status = task->tk_status;
dprintk("<-- %s\n", __func__); dprintk("<-- %s\n", __func__);
} }
...@@ -5382,7 +5381,7 @@ int nfs4_proc_layoutget(struct nfs4_layoutget *lgp) ...@@ -5382,7 +5381,7 @@ int nfs4_proc_layoutget(struct nfs4_layoutget *lgp)
status = nfs4_wait_for_completion_rpc_task(task); status = nfs4_wait_for_completion_rpc_task(task);
if (status != 0) if (status != 0)
goto out; goto out;
status = lgp->status; status = task->tk_status;
if (status != 0) if (status != 0)
goto out; goto out;
status = pnfs_layout_process(lgp); status = pnfs_layout_process(lgp);
......
...@@ -223,7 +223,6 @@ struct nfs4_layoutget { ...@@ -223,7 +223,6 @@ struct nfs4_layoutget {
struct nfs4_layoutget_args args; struct nfs4_layoutget_args args;
struct nfs4_layoutget_res res; struct nfs4_layoutget_res res;
struct pnfs_layout_segment **lsegpp; struct pnfs_layout_segment **lsegpp;
int status;
}; };
struct nfs4_getdeviceinfo_args { struct nfs4_getdeviceinfo_args {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment