aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/nfs4proc.c3
-rw-r--r--include/linux/nfs_xdr.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 18a4d5a9a4e9..28e175e74de2 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -5326,7 +5326,6 @@ static void nfs4_layoutget_done(struct rpc_task *task, void *calldata)
5326 return; 5326 return;
5327 } 5327 }
5328 } 5328 }
5329 lgp->status = task->tk_status;
5330 dprintk("<-- %s\n", __func__); 5329 dprintk("<-- %s\n", __func__);
5331} 5330}
5332 5331
@@ -5382,7 +5381,7 @@ int nfs4_proc_layoutget(struct nfs4_layoutget *lgp)
5382 status = nfs4_wait_for_completion_rpc_task(task); 5381 status = nfs4_wait_for_completion_rpc_task(task);
5383 if (status != 0) 5382 if (status != 0)
5384 goto out; 5383 goto out;
5385 status = lgp->status; 5384 status = task->tk_status;
5386 if (status != 0) 5385 if (status != 0)
5387 goto out; 5386 goto out;
5388 status = pnfs_layout_process(lgp); 5387 status = pnfs_layout_process(lgp);
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index 236e7e4b99a0..8fcc54267bba 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -223,7 +223,6 @@ struct nfs4_layoutget {
223 struct nfs4_layoutget_args args; 223 struct nfs4_layoutget_args args;
224 struct nfs4_layoutget_res res; 224 struct nfs4_layoutget_res res;
225 struct pnfs_layout_segment **lsegpp; 225 struct pnfs_layout_segment **lsegpp;
226 int status;
227}; 226};
228 227
229struct nfs4_getdeviceinfo_args { 228struct nfs4_getdeviceinfo_args {