]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: version operations for smb20 unneeded when legacy support disabled
authorSteve French <stfrench@microsoft.com>
Thu, 2 Jun 2022 03:08:46 +0000 (22:08 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 2 Jun 2022 03:30:36 +0000 (22:30 -0500)
commit7ef25d5d95d1ad1dfe540513742727b825e7a17c
treebebdbda9aaf7f86954a934d29da956119607413e
parentc764fe7e4bcedb81d5aacbade00dd3651935bbec
cifs: version operations for smb20 unneeded when legacy support disabled

We should not be including unused smb20 specific code when legacy
support is disabled (CONFIG_CIFS_ALLOW_INSECURE_LEGACY turned
off).  For example smb2_operations and smb2_values aren't used
in that case.  Over time we can move more and more SMB1/CIFS and SMB2.0
code into the insecure legacy ifdefs

Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/smb2ops.c