diff options
Diffstat (limited to 'fs/nfs/callback.h')
-rw-r--r-- | fs/nfs/callback.h | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/fs/nfs/callback.h b/fs/nfs/callback.h index 58d61a8ce8b9..25e8802a51d1 100644 --- a/fs/nfs/callback.h +++ b/fs/nfs/callback.h | |||
@@ -34,10 +34,17 @@ enum nfs4_callback_opnum { | |||
34 | OP_CB_ILLEGAL = 10044, | 34 | OP_CB_ILLEGAL = 10044, |
35 | }; | 35 | }; |
36 | 36 | ||
37 | struct cb_process_state { | ||
38 | __be32 drc_status; | ||
39 | struct nfs_client *clp; | ||
40 | struct nfs4_sessionid *svc_sid; /* v4.1 callback service sessionid */ | ||
41 | }; | ||
42 | |||
37 | struct cb_compound_hdr_arg { | 43 | struct cb_compound_hdr_arg { |
38 | unsigned int taglen; | 44 | unsigned int taglen; |
39 | const char *tag; | 45 | const char *tag; |
40 | unsigned int minorversion; | 46 | unsigned int minorversion; |
47 | unsigned int cb_ident; /* v4.0 callback identifier */ | ||
41 | unsigned nops; | 48 | unsigned nops; |
42 | }; | 49 | }; |
43 | 50 | ||
@@ -103,8 +110,9 @@ struct cb_sequenceres { | |||
103 | uint32_t csr_target_highestslotid; | 110 | uint32_t csr_target_highestslotid; |
104 | }; | 111 | }; |
105 | 112 | ||
106 | extern unsigned nfs4_callback_sequence(struct cb_sequenceargs *args, | 113 | extern __be32 nfs4_callback_sequence(struct cb_sequenceargs *args, |
107 | struct cb_sequenceres *res); | 114 | struct cb_sequenceres *res, |
115 | struct cb_process_state *cps); | ||
108 | 116 | ||
109 | extern int nfs41_validate_delegation_stateid(struct nfs_delegation *delegation, | 117 | extern int nfs41_validate_delegation_stateid(struct nfs_delegation *delegation, |
110 | const nfs4_stateid *stateid); | 118 | const nfs4_stateid *stateid); |
@@ -118,19 +126,25 @@ struct cb_recallanyargs { | |||
118 | uint32_t craa_type_mask; | 126 | uint32_t craa_type_mask; |
119 | }; | 127 | }; |
120 | 128 | ||
121 | extern unsigned nfs4_callback_recallany(struct cb_recallanyargs *args, void *dummy); | 129 | extern __be32 nfs4_callback_recallany(struct cb_recallanyargs *args, |
130 | void *dummy, | ||
131 | struct cb_process_state *cps); | ||
122 | 132 | ||
123 | struct cb_recallslotargs { | 133 | struct cb_recallslotargs { |
124 | struct sockaddr *crsa_addr; | 134 | struct sockaddr *crsa_addr; |
125 | uint32_t crsa_target_max_slots; | 135 | uint32_t crsa_target_max_slots; |
126 | }; | 136 | }; |
127 | extern unsigned nfs4_callback_recallslot(struct cb_recallslotargs *args, | 137 | extern __be32 nfs4_callback_recallslot(struct cb_recallslotargs *args, |
128 | void *dummy); | 138 | void *dummy, |
139 | struct cb_process_state *cps); | ||
129 | 140 | ||
130 | #endif /* CONFIG_NFS_V4_1 */ | 141 | #endif /* CONFIG_NFS_V4_1 */ |
131 | 142 | ||
132 | extern __be32 nfs4_callback_getattr(struct cb_getattrargs *args, struct cb_getattrres *res); | 143 | extern __be32 nfs4_callback_getattr(struct cb_getattrargs *args, |
133 | extern __be32 nfs4_callback_recall(struct cb_recallargs *args, void *dummy); | 144 | struct cb_getattrres *res, |
145 | struct cb_process_state *cps); | ||
146 | extern __be32 nfs4_callback_recall(struct cb_recallargs *args, void *dummy, | ||
147 | struct cb_process_state *cps); | ||
134 | 148 | ||
135 | #ifdef CONFIG_NFS_V4 | 149 | #ifdef CONFIG_NFS_V4 |
136 | extern int nfs_callback_up(u32 minorversion, struct rpc_xprt *xprt); | 150 | extern int nfs_callback_up(u32 minorversion, struct rpc_xprt *xprt); |