diff options
author | Anna Schumaker <Anna.Schumaker@netapp.com> | 2014-05-06 09:12:34 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-05-28 18:40:56 -0400 |
commit | ce59515c1484d3a01bc2f3e7043dc488d25efe34 (patch) | |
tree | 00c371ca81a26280eab34ad96fae8ca9c95d940d /fs/nfs/internal.h | |
parent | 6f92fa4581f1c26562f80dc686b3c9ea76556911 (diff) |
NFS: Create a common rpcsetup function for reads and writes
Write adds a little bit of code dealing with flush flags, but since
"how" will always be 0 when reading we can share the code.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index e34220f10165..519864b3296a 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -242,6 +242,8 @@ struct nfs_rw_header *nfs_rw_header_alloc(const struct nfs_rw_ops *); | |||
242 | void nfs_rw_header_free(struct nfs_pgio_header *); | 242 | void nfs_rw_header_free(struct nfs_pgio_header *); |
243 | struct nfs_pgio_data *nfs_pgio_data_alloc(struct nfs_pgio_header *, unsigned int); | 243 | struct nfs_pgio_data *nfs_pgio_data_alloc(struct nfs_pgio_header *, unsigned int); |
244 | void nfs_pgio_data_release(struct nfs_pgio_data *); | 244 | void nfs_pgio_data_release(struct nfs_pgio_data *); |
245 | void nfs_pgio_rpcsetup(struct nfs_pgio_data *, unsigned int, unsigned int, int, | ||
246 | struct nfs_commit_info *); | ||
245 | 247 | ||
246 | static inline void nfs_iocounter_init(struct nfs_io_counter *c) | 248 | static inline void nfs_iocounter_init(struct nfs_io_counter *c) |
247 | { | 249 | { |
@@ -446,6 +448,7 @@ extern void nfs_init_commit(struct nfs_commit_data *data, | |||
446 | struct nfs_commit_info *cinfo); | 448 | struct nfs_commit_info *cinfo); |
447 | int nfs_scan_commit_list(struct list_head *src, struct list_head *dst, | 449 | int nfs_scan_commit_list(struct list_head *src, struct list_head *dst, |
448 | struct nfs_commit_info *cinfo, int max); | 450 | struct nfs_commit_info *cinfo, int max); |
451 | unsigned long nfs_reqs_to_commit(struct nfs_commit_info *); | ||
449 | int nfs_scan_commit(struct inode *inode, struct list_head *dst, | 452 | int nfs_scan_commit(struct inode *inode, struct list_head *dst, |
450 | struct nfs_commit_info *cinfo); | 453 | struct nfs_commit_info *cinfo); |
451 | void nfs_mark_request_commit(struct nfs_page *req, | 454 | void nfs_mark_request_commit(struct nfs_page *req, |