diff options
author | Fred Isaman <iisaman@netapp.com> | 2012-04-20 14:47:39 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-04-27 14:10:37 -0400 |
commit | 0b7c01533aa9f4a228d07d2768d084acb3a387bc (patch) | |
tree | aa57b08ce42f1effea2294354e3c9770b70e7612 /fs/nfs/internal.h | |
parent | 799ba8d53d32c84bd2a867ca2689538a48176140 (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.h | 13 |
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); |
315 | extern void nfs_pageio_reset_write_mds(struct nfs_pageio_descriptor *pgio); | 315 | extern void nfs_pageio_reset_write_mds(struct nfs_pageio_descriptor *pgio); |
316 | extern void nfs_writedata_release(struct nfs_write_data *wdata); | 316 | extern void nfs_writedata_release(struct nfs_write_data *wdata); |
317 | extern void nfs_commit_free(struct nfs_write_data *p); | 317 | extern void nfs_commit_free(struct nfs_commit_data *p); |
318 | extern int nfs_initiate_write(struct nfs_write_data *data, | 318 | extern 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); |
322 | extern void nfs_write_prepare(struct rpc_task *task, void *calldata); | 322 | extern void nfs_write_prepare(struct rpc_task *task, void *calldata); |
323 | extern int nfs_initiate_commit(struct nfs_write_data *data, | 323 | extern void nfs_commit_prepare(struct rpc_task *task, void *calldata); |
324 | struct rpc_clnt *clnt, | 324 | extern 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); |
327 | extern void nfs_init_commit(struct nfs_write_data *data, | 328 | extern 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); |
330 | void nfs_retry_commit(struct list_head *page_list, | 331 | void nfs_retry_commit(struct list_head *page_list, |
331 | struct pnfs_layout_segment *lseg); | 332 | struct pnfs_layout_segment *lseg); |
332 | void nfs_commit_clear_lock(struct nfs_inode *nfsi); | 333 | void nfs_commit_clear_lock(struct nfs_inode *nfsi); |
333 | void nfs_commitdata_release(void *data); | 334 | void nfs_commitdata_release(struct nfs_commit_data *data); |
334 | void nfs_commit_release_pages(struct nfs_write_data *data); | 335 | void nfs_commit_release_pages(struct nfs_commit_data *data); |
335 | void nfs_request_add_commit_list(struct nfs_page *req, struct list_head *head); | 336 | void nfs_request_add_commit_list(struct nfs_page *req, struct list_head *head); |
336 | void nfs_request_remove_commit_list(struct nfs_page *req); | 337 | void nfs_request_remove_commit_list(struct nfs_page *req); |
337 | 338 | ||