summaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_xdr.h
diff options
context:
space:
mode:
authorTrond Myklebust2016-10-20 16:12:45 +0200
committerTrond Myklebust2016-12-02 17:42:58 +0100
commitf8c3cf9d7d7f04718e0d51c28f8430afa6058b3b (patch)
tree68c97a535a22acd7ce4cd7da950fc1ae64f8f48f /include/linux/nfs_xdr.h
parentpNFS/flexfiles: Only send layoutstats updates for mirrors that were updated (diff)
downloadkernel-qcow2-linux-f8c3cf9d7d7f04718e0d51c28f8430afa6058b3b.tar.gz
kernel-qcow2-linux-f8c3cf9d7d7f04718e0d51c28f8430afa6058b3b.tar.xz
kernel-qcow2-linux-f8c3cf9d7d7f04718e0d51c28f8430afa6058b3b.zip
NFSv4: Add a generic structure for managing layout-private information
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r--include/linux/nfs_xdr.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index bfbd0cace91b..331a3200eb01 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -216,6 +216,20 @@ struct nfs4_get_lease_time_res {
struct nfs_fsinfo *lr_fsinfo;
};
+struct xdr_stream;
+struct nfs4_xdr_opaque_data;
+
+struct nfs4_xdr_opaque_ops {
+ void (*encode)(struct xdr_stream *, const void *args,
+ const struct nfs4_xdr_opaque_data *);
+ void (*free)(struct nfs4_xdr_opaque_data *);
+};
+
+struct nfs4_xdr_opaque_data {
+ const struct nfs4_xdr_opaque_ops *ops;
+ void *data;
+};
+
#define PNFS_LAYOUT_MAXSIZE 4096
struct nfs4_layoutdriver_data {