• Steve French's avatar
    cifs: when insecure legacy is disabled shrink amount of SMB1 code · fb157ed2
    Steve French authored
    Currently much of the smb1 code is built even when
    CONFIG_CIFS_ALLOW_INSECURE_LEGACY is disabled.
    
    Move cifssmb.c to only be compiled when insecure legacy is disabled,
    and move various SMB1/CIFS helper functions to that ifdef.  Some
    functions that were not SMB1/CIFS specific needed to be moved out of
    cifssmb.c
    
    This shrinks cifs.ko by more than 10% which is good - but also will
    help with the eventual movement of the legacy code to a distinct
    module.  Follow on patches can shrink the number of ifdefs by
    code restructuring where smb1 code is wedged in functions that
    should be calling dialect specific helper functions instead,
    and also by moving some functions from file.c/dir.c/inode.c into
    smb1 specific c files.
    Reviewed-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
    Reviewed-by: default avatarPaulo Alcantara (SUSE) <pc@cjr.nz>
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    fb157ed2
inode.c 80.5 KB