diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2012-03-23 14:28:03 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2012-03-23 14:28:03 -0400 |
commit | 5ffef7bf1dd582e93b15f8cc735328a556a1d2c4 (patch) | |
tree | 0ef4517dfd3b1e9ded2afda62987d1c784f54769 /fs/cifs/cifsglob.h | |
parent | d4e4854fd1c85ac8ba4d6de39703e07704754b85 (diff) |
CIFS: Separate protocol-specific code from cifs_readv_receive code
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 34a897e3d225..a40339826178 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -341,6 +341,18 @@ has_credits(struct TCP_Server_Info *server, int *credits) | |||
341 | return num > 0; | 341 | return num > 0; |
342 | } | 342 | } |
343 | 343 | ||
344 | static inline size_t | ||
345 | header_size(void) | ||
346 | { | ||
347 | return sizeof(struct smb_hdr); | ||
348 | } | ||
349 | |||
350 | static inline size_t | ||
351 | max_header_size(void) | ||
352 | { | ||
353 | return MAX_CIFS_HDR_SIZE; | ||
354 | } | ||
355 | |||
344 | /* | 356 | /* |
345 | * Macros to allow the TCP_Server_Info->net field and related code to drop out | 357 | * Macros to allow the TCP_Server_Info->net field and related code to drop out |
346 | * when CONFIG_NET_NS isn't set. | 358 | * when CONFIG_NET_NS isn't set. |