NFSv4: Add a generic structure for managing layout-private information
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 20 Oct 2016 14:12:45 +0000 (10:12 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 2 Dec 2016 16:42:58 +0000 (11:42 -0500)
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
include/linux/nfs_xdr.h

index bfbd0cace91b29b3ace01450ab6faeb3b4111acf..331a3200eb0134fb85f793c6f4a69208ded1232b 100644 (file)
@@ -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 {