aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/read.c
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2011-02-28 20:34:19 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-03-11 15:38:43 -0500
commitdc70d7b3189597f313df7bd2da849cfc39063b15 (patch)
treec739f2c3a2213b1bc028f1599ee0efcbeabd9b81 /fs/nfs/read.c
parentcfe7f4120f8b1b9465c333d1e42efd4669b1799f (diff)
NFSv4.1: filelayout read
Attempt a pNFS file layout read by setting up the nfs_read_data struct and calling nfs_initiate_read with the data server rpc client and the filelayout rpc call ops. Error handling is implemented in a subsequent patch. Signed-off-by: Andy Adamson <andros@citi.umich.edu> Signed-off-by: Dean Hildebrand <dhildeb@us.ibm.com> Signed-off-by: Fred Isaman <iisaman@citi.umich.edu> Signed-off-by: Fred Isaman <iisaman@netapp.com> Signed-off-by: Mingyang Guo <guomingyang@nrchpc.ac.cn> Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Ricardo Labiaga <Ricardo.Labiaga@netapp.com> Tested-by: Guo Mingyang <guomingyang@nrchpc.ac.cn> Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/read.c')
-rw-r--r--fs/nfs/read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/read.c b/fs/nfs/read.c
index 4127a1c0eec6..f4d0fcffcb5a 100644
--- a/fs/nfs/read.c
+++ b/fs/nfs/read.c
@@ -157,7 +157,7 @@ static void nfs_readpage_release(struct nfs_page *req)
157 nfs_release_request(req); 157 nfs_release_request(req);
158} 158}
159 159
160static int nfs_initiate_read(struct nfs_read_data *data, struct rpc_clnt *clnt, 160int nfs_initiate_read(struct nfs_read_data *data, struct rpc_clnt *clnt,
161 const struct rpc_call_ops *call_ops) 161 const struct rpc_call_ops *call_ops)
162{ 162{
163 struct inode *inode = data->inode; 163 struct inode *inode = data->inode;
@@ -195,6 +195,7 @@ static int nfs_initiate_read(struct nfs_read_data *data, struct rpc_clnt *clnt,
195 rpc_put_task(task); 195 rpc_put_task(task);
196 return 0; 196 return 0;
197} 197}
198EXPORT_SYMBOL_GPL(nfs_initiate_read);
198 199
199/* 200/*
200 * Set up the NFS read request struct 201 * Set up the NFS read request struct