aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorAnna Schumaker <Anna.Schumaker@netapp.com>2014-05-06 09:12:34 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-05-28 18:40:56 -0400
commitce59515c1484d3a01bc2f3e7043dc488d25efe34 (patch)
tree00c371ca81a26280eab34ad96fae8ca9c95d940d /fs/nfs/internal.h
parent6f92fa4581f1c26562f80dc686b3c9ea76556911 (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.h3
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 *);
242void nfs_rw_header_free(struct nfs_pgio_header *); 242void nfs_rw_header_free(struct nfs_pgio_header *);
243struct nfs_pgio_data *nfs_pgio_data_alloc(struct nfs_pgio_header *, unsigned int); 243struct nfs_pgio_data *nfs_pgio_data_alloc(struct nfs_pgio_header *, unsigned int);
244void nfs_pgio_data_release(struct nfs_pgio_data *); 244void nfs_pgio_data_release(struct nfs_pgio_data *);
245void nfs_pgio_rpcsetup(struct nfs_pgio_data *, unsigned int, unsigned int, int,
246 struct nfs_commit_info *);
245 247
246static inline void nfs_iocounter_init(struct nfs_io_counter *c) 248static 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);
447int nfs_scan_commit_list(struct list_head *src, struct list_head *dst, 449int 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);
451unsigned long nfs_reqs_to_commit(struct nfs_commit_info *);
449int nfs_scan_commit(struct inode *inode, struct list_head *dst, 452int nfs_scan_commit(struct inode *inode, struct list_head *dst,
450 struct nfs_commit_info *cinfo); 453 struct nfs_commit_info *cinfo);
451void nfs_mark_request_commit(struct nfs_page *req, 454void nfs_mark_request_commit(struct nfs_page *req,