aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorFred Isaman <iisaman@netapp.com>2011-03-23 09:27:53 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-03-23 15:29:04 -0400
commite0c2b3801828aadb65dec9f67f7c6b7a675ad007 (patch)
tree547d70967ad8f41a18f2d3112dbd12e64f972af2 /fs/nfs/internal.h
parent988b6dceb0ae6d642587c8594529b94f6be0c5ea (diff)
NFSv4.1: filelayout driver specific code for COMMIT
Implement all the hooks created in the previous patches. This requires exporting quite a few functions and adding a few structure fields. 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.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index d1ddc23c404d..708705062216 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -276,11 +276,25 @@ extern int nfs_initiate_read(struct nfs_read_data *data, struct rpc_clnt *clnt,
276extern void nfs_read_prepare(struct rpc_task *task, void *calldata); 276extern void nfs_read_prepare(struct rpc_task *task, void *calldata);
277 277
278/* write.c */ 278/* write.c */
279extern void nfs_commit_free(struct nfs_write_data *p);
279extern int nfs_initiate_write(struct nfs_write_data *data, 280extern int nfs_initiate_write(struct nfs_write_data *data,
280 struct rpc_clnt *clnt, 281 struct rpc_clnt *clnt,
281 const struct rpc_call_ops *call_ops, 282 const struct rpc_call_ops *call_ops,
282 int how); 283 int how);
283extern void nfs_write_prepare(struct rpc_task *task, void *calldata); 284extern void nfs_write_prepare(struct rpc_task *task, void *calldata);
285extern int nfs_initiate_commit(struct nfs_write_data *data,
286 struct rpc_clnt *clnt,
287 const struct rpc_call_ops *call_ops,
288 int how);
289extern void nfs_init_commit(struct nfs_write_data *data,
290 struct list_head *head,
291 struct pnfs_layout_segment *lseg);
292void nfs_retry_commit(struct list_head *page_list,
293 struct pnfs_layout_segment *lseg);
294void nfs_commit_clear_lock(struct nfs_inode *nfsi);
295void nfs_commitdata_release(void *data);
296void nfs_commit_release_pages(struct nfs_write_data *data);
297
284#ifdef CONFIG_MIGRATION 298#ifdef CONFIG_MIGRATION
285extern int nfs_migrate_page(struct address_space *, 299extern int nfs_migrate_page(struct address_space *,
286 struct page *, struct page *); 300 struct page *, struct page *);