cifs: do not pass cifs_sb when trying to add channels
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 6 Nov 2023 16:22:11 +0000 (16:22 +0000)
committerSteve French <stfrench@microsoft.com>
Thu, 9 Nov 2023 16:25:21 +0000 (10:25 -0600)
commit9599d59eb8fc0c0fd9480c4f22901533d08965ee
treeff5624b3259a70b001d7661db42034c698d12fca
parentfa1d0508bdd4a68c5e40f85f635712af8c12f180
cifs: do not pass cifs_sb when trying to add channels

The only reason why cifs_sb gets passed today to cifs_try_adding_channels
is to pass the local_nls field for the new channels and binding session.
However, the ses struct already has local_nls field that is setup during
the first cifs_setup_session. So there is no need to pass cifs_sb.

This change removes cifs_sb from the arg list for this and the functions
that it calls and uses ses->local_nls instead.

Cc: stable@vger.kernel.org
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsproto.h
fs/smb/client/connect.c
fs/smb/client/sess.c