aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorFred Isaman <iisaman@netapp.com>2012-04-20 14:47:39 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-04-27 14:10:37 -0400
commit0b7c01533aa9f4a228d07d2768d084acb3a387bc (patch)
treeaa57b08ce42f1effea2294354e3c9770b70e7612 /fs/nfs/internal.h
parent799ba8d53d32c84bd2a867ca2689538a48176140 (diff)
NFS: add a struct nfs_commit_data to replace nfs_write_data in commits
Commits don't need the vectors of pages, etc. that writes do. Split out a separate structure for the commit operation. Signed-off-by: Fred Isaman <iisaman@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r--fs/nfs/internal.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index b777bdaba4c5..29ab441b22b1 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -314,24 +314,25 @@ extern void nfs_pageio_init_write_mds(struct nfs_pageio_descriptor *pgio,
314 struct inode *inode, int ioflags); 314 struct inode *inode, int ioflags);
315extern void nfs_pageio_reset_write_mds(struct nfs_pageio_descriptor *pgio); 315extern void nfs_pageio_reset_write_mds(struct nfs_pageio_descriptor *pgio);
316extern void nfs_writedata_release(struct nfs_write_data *wdata); 316extern void nfs_writedata_release(struct nfs_write_data *wdata);
317extern void nfs_commit_free(struct nfs_write_data *p); 317extern void nfs_commit_free(struct nfs_commit_data *p);
318extern int nfs_initiate_write(struct nfs_write_data *data, 318extern int nfs_initiate_write(struct nfs_write_data *data,
319 struct rpc_clnt *clnt, 319 struct rpc_clnt *clnt,
320 const struct rpc_call_ops *call_ops, 320 const struct rpc_call_ops *call_ops,
321 int how); 321 int how);
322extern void nfs_write_prepare(struct rpc_task *task, void *calldata); 322extern void nfs_write_prepare(struct rpc_task *task, void *calldata);
323extern int nfs_initiate_commit(struct nfs_write_data *data, 323extern void nfs_commit_prepare(struct rpc_task *task, void *calldata);
324 struct rpc_clnt *clnt, 324extern int nfs_initiate_commit(struct rpc_clnt *clnt,
325 struct nfs_commit_data *data,
325 const struct rpc_call_ops *call_ops, 326 const struct rpc_call_ops *call_ops,
326 int how); 327 int how);
327extern void nfs_init_commit(struct nfs_write_data *data, 328extern void nfs_init_commit(struct nfs_commit_data *data,
328 struct list_head *head, 329 struct list_head *head,
329 struct pnfs_layout_segment *lseg); 330 struct pnfs_layout_segment *lseg);
330void nfs_retry_commit(struct list_head *page_list, 331void nfs_retry_commit(struct list_head *page_list,
331 struct pnfs_layout_segment *lseg); 332 struct pnfs_layout_segment *lseg);
332void nfs_commit_clear_lock(struct nfs_inode *nfsi); 333void nfs_commit_clear_lock(struct nfs_inode *nfsi);
333void nfs_commitdata_release(void *data); 334void nfs_commitdata_release(struct nfs_commit_data *data);
334void nfs_commit_release_pages(struct nfs_write_data *data); 335void nfs_commit_release_pages(struct nfs_commit_data *data);
335void nfs_request_add_commit_list(struct nfs_page *req, struct list_head *head); 336void nfs_request_add_commit_list(struct nfs_page *req, struct list_head *head);
336void nfs_request_remove_commit_list(struct nfs_page *req); 337void nfs_request_remove_commit_list(struct nfs_page *req);
337 338