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.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 5b108382902..9ee832d29ec 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -177,8 +177,13 @@ struct smb_version_values {
177 __u32 exclusive_lock_type; 177 __u32 exclusive_lock_type;
178 __u32 shared_lock_type; 178 __u32 shared_lock_type;
179 __u32 unlock_lock_type; 179 __u32 unlock_lock_type;
180 size_t header_size;
181 size_t max_header_size;
180}; 182};
181 183
184#define HEADER_SIZE(server) (server->vals->header_size)
185#define MAX_HEADER_SIZE(server) (server->vals->max_header_size)
186
182struct smb_vol { 187struct smb_vol {
183 char *username; 188 char *username;
184 char *password; 189 char *password;
@@ -374,18 +379,6 @@ has_credits(struct TCP_Server_Info *server, int *credits)
374 return num > 0; 379 return num > 0;
375} 380}
376 381
377static inline size_t
378header_size(void)
379{
380 return sizeof(struct smb_hdr);
381}
382
383static inline size_t
384max_header_size(void)
385{
386 return MAX_CIFS_HDR_SIZE;
387}
388
389/* 382/*
390 * Macros to allow the TCP_Server_Info->net field and related code to drop out 383 * Macros to allow the TCP_Server_Info->net field and related code to drop out
391 * when CONFIG_NET_NS isn't set. 384 * when CONFIG_NET_NS isn't set.