summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2019-01-01 17:19:45 -0600
committerSteve French <stfrench@microsoft.com>2019-01-02 23:03:56 -0600
commit55a7f0065533f71991c720457ea24ff2fe909f81 (patch)
treec3d612231d40529ea63b30e29451b2fc061690c3 /fs
parent6d2f84eee098540ae857998fe32f29b9e2cd9613 (diff)
downloadlwn-55a7f0065533f71991c720457ea24ff2fe909f81.tar.gz
lwn-55a7f0065533f71991c720457ea24ff2fe909f81.zip
cifs: fix confusing warning message on reconnect
When DFS is not used on the mount we should not be mentioning DFS in the warning message on reconnect (it could be confusing). Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 69b9d5606eba..f66529679ca2 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -483,7 +483,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
cifs_sb = NULL;
} else {
rc = reconn_setup_dfs_targets(cifs_sb, &tgt_list, &tgt_it);
- if (rc) {
+ if (rc && (rc != -EOPNOTSUPP)) {
cifs_dbg(VFS, "%s: no target servers for DFS failover\n",
__func__);
} else {