[smb3] move more common protocol header definitions to smbfs_common
authorSteve French <stfrench@microsoft.com>
Fri, 25 Mar 2022 03:09:29 +0000 (22:09 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 25 Mar 2022 15:40:56 +0000 (10:40 -0500)
commit113be37d87449836ebbca4ca2909dc4e1db9663d
treea17f870773cdf0f6122386602fda9a07413cf9aa
parenta96c94481f5993eac2271f9fb4d009b7dc076c24
[smb3] move more common protocol header definitions to smbfs_common

We have duplicated definitions for various SMB3 PDUs in
fs/ksmbd and fs/cifs.  Some had already been moved to
fs/smbfs_common/smb2pdu.h

Move definitions for
- error response
- query info and various related protocol flags
- various lease handling flags and the create lease context

to smbfs_common/smb2pdu.h to reduce code duplication

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