diff options
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 480b6385a9b6..2d48f880b130 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -313,6 +313,12 @@ get_rfc1002_length(void *buf) | |||
313 | return be32_to_cpu(*((__be32 *)buf)); | 313 | return be32_to_cpu(*((__be32 *)buf)); |
314 | } | 314 | } |
315 | 315 | ||
316 | static inline void | ||
317 | inc_rfc1001_len(void *buf, int count) | ||
318 | { | ||
319 | be32_add_cpu((__be32 *)buf, count); | ||
320 | } | ||
321 | |||
316 | struct TCP_Server_Info { | 322 | struct TCP_Server_Info { |
317 | struct list_head tcp_ses_list; | 323 | struct list_head tcp_ses_list; |
318 | struct list_head smb_ses_list; | 324 | struct list_head smb_ses_list; |
@@ -393,6 +399,10 @@ struct TCP_Server_Info { | |||
393 | atomic_t in_send; /* requests trying to send */ | 399 | atomic_t in_send; /* requests trying to send */ |
394 | atomic_t num_waiters; /* blocked waiting to get in sendrecv */ | 400 | atomic_t num_waiters; /* blocked waiting to get in sendrecv */ |
395 | #endif | 401 | #endif |
402 | #ifdef CONFIG_CIFS_SMB2 | ||
403 | unsigned int max_read; | ||
404 | unsigned int max_write; | ||
405 | #endif /* CONFIG_CIFS_SMB2 */ | ||
396 | }; | 406 | }; |
397 | 407 | ||
398 | static inline unsigned int | 408 | static inline unsigned int |
@@ -986,7 +996,8 @@ static inline void free_dfs_info_array(struct dfs_info3_param *param, | |||
986 | /* Type of request operation */ | 996 | /* Type of request operation */ |
987 | #define CIFS_ECHO_OP 0x080 /* echo request */ | 997 | #define CIFS_ECHO_OP 0x080 /* echo request */ |
988 | #define CIFS_OBREAK_OP 0x0100 /* oplock break request */ | 998 | #define CIFS_OBREAK_OP 0x0100 /* oplock break request */ |
989 | #define CIFS_OP_MASK 0x0180 /* mask request type */ | 999 | #define CIFS_NEG_OP 0x0200 /* negotiate request */ |
1000 | #define CIFS_OP_MASK 0x0380 /* mask request type */ | ||
990 | 1001 | ||
991 | /* Security Flags: indicate type of session setup needed */ | 1002 | /* Security Flags: indicate type of session setup needed */ |
992 | #define CIFSSEC_MAY_SIGN 0x00001 | 1003 | #define CIFSSEC_MAY_SIGN 0x00001 |