smb3: move defines for ioctl protocol header and SMB2 sizes to smbfs_common
authorSteve French <stfrench@microsoft.com>
Sat, 26 Mar 2022 17:47:57 +0000 (12:47 -0500)
committerSteve French <stfrench@microsoft.com>
Sun, 27 Mar 2022 04:09:20 +0000 (23:09 -0500)
commit15e7b6d753b815b19b375dcd4593534c0f157c66
treeae2537f896a392b33de75b5ef33c7b2f8ca28a3c
parent113be37d87449836ebbca4ca2909dc4e1db9663d
smb3: move defines for ioctl protocol header and SMB2 sizes to smbfs_common

The definitions for the ioctl SMB3 request and response as well
as length of various fields defined in the protocol documentation
were duplicated in fs/ksmbd and fs/cifs.  Move these to the common
code in fs/smbfs_common/smb2pdu.h

Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/cifspdu.h
fs/cifs/smb2glob.h
fs/cifs/smb2pdu.h
fs/ksmbd/smb2pdu.c
fs/ksmbd/smb2pdu.h
fs/smbfs_common/smb2pdu.h