From: Stefan Metzmacher Date: Mon, 24 Feb 2020 13:15:00 +0000 (+0100) Subject: cifs: make use of cap_unix(ses) in cifs_reconnect_tcon() X-Git-Tag: block-5.7-2020-04-09~18^2~23 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=864138cb31181871c307b5455fd570c7dae001b9;p=linux-block.git cifs: make use of cap_unix(ses) in cifs_reconnect_tcon() cap_unix(ses) defaults to false for SMB2. Signed-off-by: Stefan Metzmacher Reviewed-by: Pavel Shilovsky Reviewed-by: Aurelien Aptel Signed-off-by: Steve French --- diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index b173ff22560b..140efc1a9374 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -331,7 +331,7 @@ cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command) atomic_inc(&tconInfoReconnectCount); /* tell server Unix caps we support */ - if (ses->capabilities & CAP_UNIX) + if (cap_unix(ses)) reset_cifs_unix_caps(0, tcon, NULL, NULL); /*