diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-13 15:59:19 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-15 09:12:22 -0400 |
commit | dce81290eed64d24493989bb7a08f9e20495e184 (patch) | |
tree | eb25c828d3343196fe31d95da2d7d743692fa71e /fs/nfs/pnfs.h | |
parent | 493292ddc78d18ee2ad2d5c24c2b7dd6a24641d2 (diff) |
NFS: Move the pnfs write code into pnfs.c
...and ensure that we recoalese to take into account differences in
differences in block sizes when falling back to write 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 c40ffa52c1ab..078670dfbe04 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h | |||
@@ -155,11 +155,10 @@ bool pnfs_pageio_init_write(struct nfs_pageio_descriptor *, struct inode *, int) | |||
155 | 155 | ||
156 | void set_pnfs_layoutdriver(struct nfs_server *, u32 id); | 156 | 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 *, | ||
159 | const struct rpc_call_ops *, int); | ||
160 | void pnfs_generic_pg_init_read(struct nfs_pageio_descriptor *, struct nfs_page *); | 158 | void pnfs_generic_pg_init_read(struct nfs_pageio_descriptor *, struct nfs_page *); |
161 | int pnfs_generic_pg_readpages(struct nfs_pageio_descriptor *desc); | 159 | int pnfs_generic_pg_readpages(struct nfs_pageio_descriptor *desc); |
162 | void pnfs_generic_pg_init_write(struct nfs_pageio_descriptor *, struct nfs_page *); | 160 | void pnfs_generic_pg_init_write(struct nfs_pageio_descriptor *, struct nfs_page *); |
161 | int pnfs_generic_pg_writepages(struct nfs_pageio_descriptor *desc); | ||
163 | bool pnfs_generic_pg_test(struct nfs_pageio_descriptor *pgio, struct nfs_page *prev, struct nfs_page *req); | 162 | bool pnfs_generic_pg_test(struct nfs_pageio_descriptor *pgio, struct nfs_page *prev, struct nfs_page *req); |
164 | int pnfs_layout_process(struct nfs4_layoutget *lgp); | 163 | int pnfs_layout_process(struct nfs4_layoutget *lgp); |
165 | void pnfs_free_lseg_list(struct list_head *tmp_list); | 164 | void pnfs_free_lseg_list(struct list_head *tmp_list); |
@@ -328,13 +327,6 @@ static inline void put_lseg(struct pnfs_layout_segment *lseg) | |||
328 | { | 327 | { |
329 | } | 328 | } |
330 | 329 | ||
331 | static inline enum pnfs_try_status | ||
332 | pnfs_try_to_write_data(struct nfs_write_data *data, | ||
333 | const struct rpc_call_ops *call_ops, int how) | ||
334 | { | ||
335 | return PNFS_NOT_ATTEMPTED; | ||
336 | } | ||
337 | |||
338 | static inline int pnfs_return_layout(struct inode *ino) | 330 | static inline int pnfs_return_layout(struct inode *ino) |
339 | { | 331 | { |
340 | return 0; | 332 | return 0; |