OSDN Git Service

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)
commit7ef93ffccd55fb0ba000ed16ef6a81cd7dee07b5
treebebdbda9aaf7f86954a934d29da956119607413e
parent387ba9bf4cb80277fb01a7b753da611ab1260a1a
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