mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-27 04:22:58 +00:00
SMB3: rename macro CIFS_SERVER_IS_CHAN to avoid confusion
Since older dialects such as CIFS do not support multichannel the macro CIFS_SERVER_IS_CHAN can be confusing (it requires SMB 3 or later) so shorten its name to "SERVER_IS_CHAN" Suggested-by: Tom Talpey <tom@talpey.com> Acked-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
@@ -323,12 +323,12 @@ cifs_chan_update_iface(struct cifs_ses *ses, struct TCP_Server_Info *server)
|
||||
ses->chans[chan_index].iface = iface;
|
||||
|
||||
/* No iface is found. if secondary chan, drop connection */
|
||||
if (!iface && CIFS_SERVER_IS_CHAN(server))
|
||||
if (!iface && SERVER_IS_CHAN(server))
|
||||
ses->chans[chan_index].server = NULL;
|
||||
|
||||
spin_unlock(&ses->chan_lock);
|
||||
|
||||
if (!iface && CIFS_SERVER_IS_CHAN(server))
|
||||
if (!iface && SERVER_IS_CHAN(server))
|
||||
cifs_put_tcp_session(server, false);
|
||||
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user