summaryrefslogtreecommitdiff
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2011-05-22 19:53:48 +0300
committerBoaz Harrosh <bharrosh@panasas.com>2011-05-29 20:55:00 +0300
commitac7db7264ac3314cae09893bc838fcb7e83267a4 (patch)
tree7586470df26218daa8d771760615ae0d76e6788a /fs/nfs/pnfs.h
parentadb58535e604a564495a7d50dfb0afa0ddc21bcb (diff)
downloadlinux-3.10-ac7db7264ac3314cae09893bc838fcb7e83267a4.tar.gz
linux-3.10-ac7db7264ac3314cae09893bc838fcb7e83267a4.tar.bz2
linux-3.10-ac7db7264ac3314cae09893bc838fcb7e83267a4.zip
pnfs: encode_layoutcommit
Add a layout driver method to encode the layout type specific opaque part of layout commit in-line in the xdr stream. Currently, the pnfs-objects layout driver uses it to encode metadata hints to the MDS and the blocks layout driver to commit provisionally allocated extents to the file. Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index 1b6b207a880..3fda9714677 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -108,6 +108,10 @@ struct pnfs_layoutdriver_type {
void (*encode_layoutreturn) (struct pnfs_layout_hdr *layoutid,
struct xdr_stream *xdr,
const struct nfs4_layoutreturn_args *args);
+
+ void (*encode_layoutcommit) (struct pnfs_layout_hdr *layoutid,
+ struct xdr_stream *xdr,
+ const struct nfs4_layoutcommit_args *args);
};
struct pnfs_layout_hdr {