summaryrefslogtreecommitdiffstats
path: root/fs/nfs/read.c
diff options
context:
space:
mode:
authorAnna Schumaker2014-05-06 15:12:24 +0200
committerTrond Myklebust2014-05-29 00:12:02 +0200
commit3c6b899c49e5e9c2803b59ee553eddaf69cea7f6 (patch)
treea246624f122f66a823365dfaaf6d3e56be1d2fa8 /fs/nfs/read.c
parentnfs: remove ->read_pageio_init from rpc ops (diff)
downloadkernel-qcow2-linux-3c6b899c49e5e9c2803b59ee553eddaf69cea7f6.tar.gz
kernel-qcow2-linux-3c6b899c49e5e9c2803b59ee553eddaf69cea7f6.tar.xz
kernel-qcow2-linux-3c6b899c49e5e9c2803b59ee553eddaf69cea7f6.zip
NFS: Create a common argument structure for reads and writes
Reads and writes have very similar arguments. This patch combines them together and documents the few fields used only by write. Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/read.c')
-rw-r--r--fs/nfs/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/read.c b/fs/nfs/read.c
index 7f87461be3a9..46d555206023 100644
--- a/fs/nfs/read.c
+++ b/fs/nfs/read.c
@@ -470,7 +470,7 @@ int nfs_readpage_result(struct rpc_task *task, struct nfs_read_data *data)
static void nfs_readpage_retry(struct rpc_task *task, struct nfs_read_data *data)
{
- struct nfs_readargs *argp = &data->args;
+ struct nfs_pgio_args *argp = &data->args;
struct nfs_readres *resp = &data->res;
/* This is a short read! */