aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/pnfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/pnfs.h')
-rw-r--r--fs/nfsd/pnfs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/nfsd/pnfs.h b/fs/nfsd/pnfs.h
index ff50bfa1f76f..7d073b9b1553 100644
--- a/fs/nfsd/pnfs.h
+++ b/fs/nfsd/pnfs.h
@@ -21,6 +21,7 @@ struct nfsd4_layout_ops {
21 u32 notify_types; 21 u32 notify_types;
22 22
23 __be32 (*proc_getdeviceinfo)(struct super_block *sb, 23 __be32 (*proc_getdeviceinfo)(struct super_block *sb,
24 struct nfs4_client *clp,
24 struct nfsd4_getdeviceinfo *gdevp); 25 struct nfsd4_getdeviceinfo *gdevp);
25 __be32 (*encode_getdeviceinfo)(struct xdr_stream *xdr, 26 __be32 (*encode_getdeviceinfo)(struct xdr_stream *xdr,
26 struct nfsd4_getdeviceinfo *gdevp); 27 struct nfsd4_getdeviceinfo *gdevp);
@@ -32,12 +33,17 @@ struct nfsd4_layout_ops {
32 33
33 __be32 (*proc_layoutcommit)(struct inode *inode, 34 __be32 (*proc_layoutcommit)(struct inode *inode,
34 struct nfsd4_layoutcommit *lcp); 35 struct nfsd4_layoutcommit *lcp);
36
37 void (*fence_client)(struct nfs4_layout_stateid *ls);
35}; 38};
36 39
37extern const struct nfsd4_layout_ops *nfsd4_layout_ops[]; 40extern const struct nfsd4_layout_ops *nfsd4_layout_ops[];
38#ifdef CONFIG_NFSD_BLOCKLAYOUT 41#ifdef CONFIG_NFSD_BLOCKLAYOUT
39extern const struct nfsd4_layout_ops bl_layout_ops; 42extern const struct nfsd4_layout_ops bl_layout_ops;
40#endif 43#endif
44#ifdef CONFIG_NFSD_SCSILAYOUT
45extern const struct nfsd4_layout_ops scsi_layout_ops;
46#endif
41 47
42__be32 nfsd4_preprocess_layout_stateid(struct svc_rqst *rqstp, 48__be32 nfsd4_preprocess_layout_stateid(struct svc_rqst *rqstp,
43 struct nfsd4_compound_state *cstate, stateid_t *stateid, 49 struct nfsd4_compound_state *cstate, stateid_t *stateid,