]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - fs/cifs/smb2glob.h
CIFS: Separate SMB2 sync header processing
[mirror_ubuntu-zesty-kernel.git] / fs / cifs / smb2glob.h
index 0ffa180943357c5514b5ae025f61e4b19f574f38..401a5d8566367e2bb5d3d65df5679708e515b2f6 100644 (file)
@@ -61,4 +61,9 @@
 /* Maximum buffer size value we can send with 1 credit */
 #define SMB2_MAX_BUFFER_SIZE 65536
 
+static inline struct smb2_sync_hdr *get_sync_hdr(void *buf)
+{
+       return &(((struct smb2_hdr *)buf)->sync_hdr);
+}
+
 #endif /* _SMB2_GLOB_H */