diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-13 15:58:28 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-15 09:12:21 -0400 |
commit | 493292ddc78d18ee2ad2d5c24c2b7dd6a24641d2 (patch) | |
tree | cad42b32b7baa303189ddd6d791229c619f24f37 /fs/nfs/internal.h | |
parent | d9156f9f364897e93bdd98b4ad22138de18f7c24 (diff) |
NFS: Move the pnfs read code into pnfs.c
...and ensure that we recoalese to take into account differences in
block sizes when falling back to read through the MDS.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 31e8b50011af..d74d7dea9173 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -291,14 +291,18 @@ extern struct dentry *nfs4_get_root(struct super_block *, struct nfs_fh *, | |||
291 | extern int nfs4_get_rootfh(struct nfs_server *server, struct nfs_fh *mntfh); | 291 | extern int nfs4_get_rootfh(struct nfs_server *server, struct nfs_fh *mntfh); |
292 | #endif | 292 | #endif |
293 | 293 | ||
294 | struct nfs_pageio_descriptor; | ||
294 | /* read.c */ | 295 | /* read.c */ |
295 | extern int nfs_initiate_read(struct nfs_read_data *data, struct rpc_clnt *clnt, | 296 | extern int nfs_initiate_read(struct nfs_read_data *data, struct rpc_clnt *clnt, |
296 | const struct rpc_call_ops *call_ops); | 297 | const struct rpc_call_ops *call_ops); |
297 | extern void nfs_read_prepare(struct rpc_task *task, void *calldata); | 298 | extern void nfs_read_prepare(struct rpc_task *task, void *calldata); |
299 | extern int nfs_generic_pagein(struct nfs_pageio_descriptor *desc, | ||
300 | struct list_head *head); | ||
298 | 301 | ||
299 | struct nfs_pageio_descriptor; | ||
300 | extern void nfs_pageio_init_read_mds(struct nfs_pageio_descriptor *pgio, | 302 | extern void nfs_pageio_init_read_mds(struct nfs_pageio_descriptor *pgio, |
301 | struct inode *inode); | 303 | struct inode *inode); |
304 | extern void nfs_pageio_reset_read_mds(struct nfs_pageio_descriptor *pgio); | ||
305 | extern void nfs_readdata_release(struct nfs_read_data *rdata); | ||
302 | 306 | ||
303 | /* write.c */ | 307 | /* write.c */ |
304 | extern void nfs_pageio_init_write_mds(struct nfs_pageio_descriptor *pgio, | 308 | extern void nfs_pageio_init_write_mds(struct nfs_pageio_descriptor *pgio, |