summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2016-12-02 16:12:12 -0500
committerTrond Myklebust <trond.myklebust@primarydata.com>2016-12-03 13:12:16 -0500
commit287bd3e95452e8ad945854bb98a3a7fbdc2a05c9 (patch)
tree76dee7bed20ba74e30ffb3b4227b5b3bda8c8aeb /fs/nfs/pnfs.h
parent4d796d751cefdb942a54c570bd3087d8be3bb893 (diff)
downloadlinux-stable-287bd3e95452e8ad945854bb98a3a7fbdc2a05c9.tar.gz
linux-stable-287bd3e95452e8ad945854bb98a3a7fbdc2a05c9.tar.bz2
linux-stable-287bd3e95452e8ad945854bb98a3a7fbdc2a05c9.zip
pNFS: Add a layoutreturn callback to performa layout-private setup
Add a callback to allow the flexfiles layout driver to initialise the layout private payload. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index 459ac2c74af8..d1e028175cd1 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -172,6 +172,7 @@ struct pnfs_layoutdriver_type {
(struct nfs_server *server, struct pnfs_device *pdev,
gfp_t gfp_flags);
+ int (*prepare_layoutreturn) (struct nfs4_layoutreturn_args *);
void (*encode_layoutreturn) (struct xdr_stream *xdr,
const struct nfs4_layoutreturn_args *args);