aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2011-07-30 20:52:38 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-07-31 12:18:15 -0400
commitdb29c089094b2e686ebc9ed9f002be4a4f94b1f8 (patch)
tree1929e52e063af05032a1f95ad4d9bb49c7f609dd /fs/nfs/pnfs.h
parentdae100c2b1b9463996aab9162f2258145c43f7df (diff)
pnfs: cleanup_layoutcommit
This gives layout driver a chance to cleanup structures they put in at encode_layoutcommit. Signed-off-by: Andy Adamson <andros@netapp.com> [fixup layout header pointer for layoutcommit] Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Benny Halevy <bhalevy@tonian.com> [rm inode and pnfs_layout_hdr args from cleanup_layoutcommit()] Signed-off-by: Jim Rees <rees@umich.edu> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index bddd8b997e18..606fbde2e757 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -113,6 +113,8 @@ struct pnfs_layoutdriver_type {
113 struct xdr_stream *xdr, 113 struct xdr_stream *xdr,
114 const struct nfs4_layoutreturn_args *args); 114 const struct nfs4_layoutreturn_args *args);
115 115
116 void (*cleanup_layoutcommit) (struct nfs4_layoutcommit_data *data);
117
116 void (*encode_layoutcommit) (struct pnfs_layout_hdr *layoutid, 118 void (*encode_layoutcommit) (struct pnfs_layout_hdr *layoutid,
117 struct xdr_stream *xdr, 119 struct xdr_stream *xdr,
118 const struct nfs4_layoutcommit_args *args); 120 const struct nfs4_layoutcommit_args *args);
@@ -196,6 +198,7 @@ void pnfs_roc_release(struct inode *ino);
196void pnfs_roc_set_barrier(struct inode *ino, u32 barrier); 198void pnfs_roc_set_barrier(struct inode *ino, u32 barrier);
197bool pnfs_roc_drain(struct inode *ino, u32 *barrier); 199bool pnfs_roc_drain(struct inode *ino, u32 *barrier);
198void pnfs_set_layoutcommit(struct nfs_write_data *wdata); 200void pnfs_set_layoutcommit(struct nfs_write_data *wdata);
201void pnfs_cleanup_layoutcommit(struct nfs4_layoutcommit_data *data);
199int pnfs_layoutcommit_inode(struct inode *inode, bool sync); 202int pnfs_layoutcommit_inode(struct inode *inode, bool sync);
200int _pnfs_return_layout(struct inode *); 203int _pnfs_return_layout(struct inode *);
201int pnfs_ld_write_done(struct nfs_write_data *); 204int pnfs_ld_write_done(struct nfs_write_data *);