aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/callback.h
diff options
context:
space:
mode:
authorFred Isaman <iisaman@netapp.com>2011-01-06 06:36:29 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-01-06 14:46:32 -0500
commitf2a625616045fe46e1d5fceebdd825f5acdecdb7 (patch)
tree7dc2943b33b6adf7cc391f3699e6d2f676f3d431 /fs/nfs/callback.h
parentcc6e5340b0981feac5a00a992bab6154cb4b1fa1 (diff)
pnfs: CB_LAYOUTRECALL xdr code
This is the xdr decoding for CB_LAYOUTRECALL. Signed-off-by: Alexandros Batsakis <batsakis@netapp.com> Signed-off-by: Dean Hildebrand <dhildeb@us.ibm.com> Signed-off-by: Marc Eshel <eshel@almaden.ibm.com> Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Fred Isaman <iisaman@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/callback.h')
-rw-r--r--fs/nfs/callback.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/fs/nfs/callback.h b/fs/nfs/callback.h
index b678e3e15bd9..f6768ac09190 100644
--- a/fs/nfs/callback.h
+++ b/fs/nfs/callback.h
@@ -138,6 +138,25 @@ extern __be32 nfs4_callback_recallslot(struct cb_recallslotargs *args,
138 void *dummy, 138 void *dummy,
139 struct cb_process_state *cps); 139 struct cb_process_state *cps);
140 140
141struct cb_layoutrecallargs {
142 struct sockaddr *cbl_addr;
143 uint32_t cbl_recall_type;
144 uint32_t cbl_layout_type;
145 uint32_t cbl_layoutchanged;
146 union {
147 struct {
148 struct nfs_fh cbl_fh;
149 struct pnfs_layout_range cbl_range;
150 nfs4_stateid cbl_stateid;
151 };
152 struct nfs_fsid cbl_fsid;
153 };
154};
155
156extern unsigned nfs4_callback_layoutrecall(
157 struct cb_layoutrecallargs *args,
158 void *dummy, struct cb_process_state *cps);
159
141extern void nfs4_check_drain_bc_complete(struct nfs4_session *ses); 160extern void nfs4_check_drain_bc_complete(struct nfs4_session *ses);
142extern void nfs4_cb_take_slot(struct nfs_client *clp); 161extern void nfs4_cb_take_slot(struct nfs_client *clp);
143#endif /* CONFIG_NFS_V4_1 */ 162#endif /* CONFIG_NFS_V4_1 */