aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 2aac4e5fb334..844b77c2bc9c 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -171,9 +171,11 @@ struct smb_version_operations {
171 /* check response: verify signature, map error */ 171 /* check response: verify signature, map error */
172 int (*check_receive)(struct mid_q_entry *, struct TCP_Server_Info *, 172 int (*check_receive)(struct mid_q_entry *, struct TCP_Server_Info *,
173 bool); 173 bool);
174 void (*add_credits)(struct TCP_Server_Info *, const unsigned int); 174 void (*add_credits)(struct TCP_Server_Info *, const unsigned int,
175 const int);
175 void (*set_credits)(struct TCP_Server_Info *, const int); 176 void (*set_credits)(struct TCP_Server_Info *, const int);
176 int * (*get_credits_field)(struct TCP_Server_Info *); 177 int * (*get_credits_field)(struct TCP_Server_Info *, const int);
178 unsigned int (*get_credits)(struct mid_q_entry *);
177 __u64 (*get_next_mid)(struct TCP_Server_Info *); 179 __u64 (*get_next_mid)(struct TCP_Server_Info *);
178 /* data offset from read response message */ 180 /* data offset from read response message */
179 unsigned int (*read_data_offset)(char *); 181 unsigned int (*read_data_offset)(char *);
@@ -392,9 +394,10 @@ has_credits(struct TCP_Server_Info *server, int *credits)
392} 394}
393 395
394static inline void 396static inline void
395add_credits(struct TCP_Server_Info *server, const unsigned int add) 397add_credits(struct TCP_Server_Info *server, const unsigned int add,
398 const int optype)
396{ 399{
397 server->ops->add_credits(server, add); 400 server->ops->add_credits(server, add, optype);
398} 401}
399 402
400static inline void 403static inline void
@@ -957,6 +960,11 @@ static inline void free_dfs_info_array(struct dfs_info3_param *param,
957#define CIFS_LARGE_BUF_OP 0x020 /* large request buffer */ 960#define CIFS_LARGE_BUF_OP 0x020 /* large request buffer */
958#define CIFS_NO_RESP 0x040 /* no response buffer required */ 961#define CIFS_NO_RESP 0x040 /* no response buffer required */
959 962
963/* Type of request operation */
964#define CIFS_ECHO_OP 0x080 /* echo request */
965#define CIFS_OBREAK_OP 0x0100 /* oplock break request */
966#define CIFS_OP_MASK 0x0180 /* mask request type */
967
960/* Security Flags: indicate type of session setup needed */ 968/* Security Flags: indicate type of session setup needed */
961#define CIFSSEC_MAY_SIGN 0x00001 969#define CIFSSEC_MAY_SIGN 0x00001
962#define CIFSSEC_MAY_NTLM 0x00002 970#define CIFSSEC_MAY_NTLM 0x00002