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/pnfs.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/pnfs.h')
-rw-r--r-- | fs/nfs/pnfs.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index a59736eae6ec..c40ffa52c1ab 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h | |||
@@ -157,9 +157,8 @@ void set_pnfs_layoutdriver(struct nfs_server *, u32 id); | |||
157 | void unset_pnfs_layoutdriver(struct nfs_server *); | 157 | void unset_pnfs_layoutdriver(struct nfs_server *); |
158 | enum pnfs_try_status pnfs_try_to_write_data(struct nfs_write_data *, | 158 | enum pnfs_try_status pnfs_try_to_write_data(struct nfs_write_data *, |
159 | const struct rpc_call_ops *, int); | 159 | const struct rpc_call_ops *, int); |
160 | enum pnfs_try_status pnfs_try_to_read_data(struct nfs_read_data *, | ||
161 | const struct rpc_call_ops *); | ||
162 | void pnfs_generic_pg_init_read(struct nfs_pageio_descriptor *, struct nfs_page *); | 160 | void pnfs_generic_pg_init_read(struct nfs_pageio_descriptor *, struct nfs_page *); |
161 | int pnfs_generic_pg_readpages(struct nfs_pageio_descriptor *desc); | ||
163 | void pnfs_generic_pg_init_write(struct nfs_pageio_descriptor *, struct nfs_page *); | 162 | void pnfs_generic_pg_init_write(struct nfs_pageio_descriptor *, struct nfs_page *); |
164 | bool pnfs_generic_pg_test(struct nfs_pageio_descriptor *pgio, struct nfs_page *prev, struct nfs_page *req); | 163 | bool pnfs_generic_pg_test(struct nfs_pageio_descriptor *pgio, struct nfs_page *prev, struct nfs_page *req); |
165 | int pnfs_layout_process(struct nfs4_layoutget *lgp); | 164 | int pnfs_layout_process(struct nfs4_layoutget *lgp); |
@@ -330,13 +329,6 @@ static inline void put_lseg(struct pnfs_layout_segment *lseg) | |||
330 | } | 329 | } |
331 | 330 | ||
332 | static inline enum pnfs_try_status | 331 | static inline enum pnfs_try_status |
333 | pnfs_try_to_read_data(struct nfs_read_data *data, | ||
334 | const struct rpc_call_ops *call_ops) | ||
335 | { | ||
336 | return PNFS_NOT_ATTEMPTED; | ||
337 | } | ||
338 | |||
339 | static inline enum pnfs_try_status | ||
340 | pnfs_try_to_write_data(struct nfs_write_data *data, | 332 | pnfs_try_to_write_data(struct nfs_write_data *data, |
341 | const struct rpc_call_ops *call_ops, int how) | 333 | const struct rpc_call_ops *call_ops, int how) |
342 | { | 334 | { |