diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2011-12-26 13:53:34 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-07-24 11:25:20 -0400 |
commit | 2dc7e1c03316940dec899fa3206a595de000e99b (patch) | |
tree | c74127806717b23e226b3ee81135d091d859bd7a /fs/cifs/cifsglob.h | |
parent | ddfbefbd393fb1a935bdf27cba5ad2eb24a76e75 (diff) |
CIFS: Make transport routines work with SMB2
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 6d18962c9903..3575f0f832b1 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/in.h> | 22 | #include <linux/in.h> |
23 | #include <linux/in6.h> | 23 | #include <linux/in6.h> |
24 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |
25 | #include <linux/mempool.h> | ||
25 | #include <linux/workqueue.h> | 26 | #include <linux/workqueue.h> |
26 | #include "cifs_fs_sb.h" | 27 | #include "cifs_fs_sb.h" |
27 | #include "cifsacl.h" | 28 | #include "cifsacl.h" |
@@ -218,6 +219,7 @@ struct smb_version_values { | |||
218 | size_t header_size; | 219 | size_t header_size; |
219 | size_t max_header_size; | 220 | size_t max_header_size; |
220 | size_t read_rsp_size; | 221 | size_t read_rsp_size; |
222 | __le16 lock_cmd; | ||
221 | }; | 223 | }; |
222 | 224 | ||
223 | #define HEADER_SIZE(server) (server->vals->header_size) | 225 | #define HEADER_SIZE(server) (server->vals->header_size) |
@@ -812,6 +814,7 @@ typedef void (mid_callback_t)(struct mid_q_entry *mid); | |||
812 | /* one of these for every pending CIFS request to the server */ | 814 | /* one of these for every pending CIFS request to the server */ |
813 | struct mid_q_entry { | 815 | struct mid_q_entry { |
814 | struct list_head qhead; /* mids waiting on reply from this server */ | 816 | struct list_head qhead; /* mids waiting on reply from this server */ |
817 | struct TCP_Server_Info *server; /* server corresponding to this mid */ | ||
815 | __u64 mid; /* multiplex id */ | 818 | __u64 mid; /* multiplex id */ |
816 | __u32 pid; /* process id */ | 819 | __u32 pid; /* process id */ |
817 | __u32 sequence_number; /* for CIFS signing */ | 820 | __u32 sequence_number; /* for CIFS signing */ |
@@ -1153,6 +1156,8 @@ void cifs_oplock_break(struct work_struct *work); | |||
1153 | extern const struct slow_work_ops cifs_oplock_break_ops; | 1156 | extern const struct slow_work_ops cifs_oplock_break_ops; |
1154 | extern struct workqueue_struct *cifsiod_wq; | 1157 | extern struct workqueue_struct *cifsiod_wq; |
1155 | 1158 | ||
1159 | extern mempool_t *cifs_mid_poolp; | ||
1160 | |||
1156 | /* Operations for different SMB versions */ | 1161 | /* Operations for different SMB versions */ |
1157 | #define SMB1_VERSION_STRING "1.0" | 1162 | #define SMB1_VERSION_STRING "1.0" |
1158 | extern struct smb_version_operations smb1_operations; | 1163 | extern struct smb_version_operations smb1_operations; |