aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2012-05-17 04:18:21 -0400
committerPavel Shilovsky <pshilovsky@samba.org>2012-05-23 04:32:57 -0400
commit082d0642c61fc309ca7f6133968ba1264193dcc1 (patch)
tree4a41e9ff5f3effd2672811b445ee231c32b08c36 /fs/cifs/cifsglob.h
parent2608bee744a92d60d15ff4e6e0b913d8b406aedd (diff)
CIFS: Move protocol specific part from SendReceive2 to ops struct
Acked-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index b6e97f8586d2..5b108382902a 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -157,11 +157,18 @@ enum smb_version {
157struct mid_q_entry; 157struct mid_q_entry;
158struct TCP_Server_Info; 158struct TCP_Server_Info;
159struct cifsFileInfo; 159struct cifsFileInfo;
160struct cifs_ses;
160 161
161struct smb_version_operations { 162struct smb_version_operations {
162 int (*send_cancel)(struct TCP_Server_Info *, void *, 163 int (*send_cancel)(struct TCP_Server_Info *, void *,
163 struct mid_q_entry *); 164 struct mid_q_entry *);
164 bool (*compare_fids)(struct cifsFileInfo *, struct cifsFileInfo *); 165 bool (*compare_fids)(struct cifsFileInfo *, struct cifsFileInfo *);
166 /* setup request: allocate mid, sign message */
167 int (*setup_request)(struct cifs_ses *, struct kvec *, unsigned int,
168 struct mid_q_entry **);
169 /* check response: verify signature, map error */
170 int (*check_receive)(struct mid_q_entry *, struct TCP_Server_Info *,
171 bool);
165}; 172};
166 173
167struct smb_version_values { 174struct smb_version_values {