summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2012-03-23 14:28:02 -0400
committerJeff Layton <jlayton@redhat.com>2012-03-23 14:28:02 -0400
commit792af7b05b8a78def080ec757a4d4420b9fd0cc2 (patch)
tree6f6d556f155194295375f3d4ad6cbfabbd7aeeeb /fs/cifs/cifsglob.h
parent934e18b5cb4531cc6e81865bf54115cfd21d1ac6 (diff)
downloadlinux-stable-792af7b05b8a78def080ec757a4d4420b9fd0cc2.tar.gz
linux-stable-792af7b05b8a78def080ec757a4d4420b9fd0cc2.tar.bz2
linux-stable-792af7b05b8a78def080ec757a4d4420b9fd0cc2.zip
CIFS: Separate protocol-specific code from transport routines
that lets us use this functions for SMB2. Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 339ebe3ebc0d..c3c7d7c46220 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -230,6 +230,12 @@ struct cifs_mnt_data {
int flags;
};
+static inline unsigned int
+get_rfc1002_length(void *buf)
+{
+ return be32_to_cpu(*((__be32 *)buf));
+}
+
struct TCP_Server_Info {
struct list_head tcp_ses_list;
struct list_head smb_ses_list;