CIFS: don't log STATUS_NOT_FOUND errors for DFS

cifs.ko makes DFS queries regardless of the type of the server and
non-DFS servers are common. This often results in superfluous logging of
non-critical errors.

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
This commit is contained in:
Aurelien Aptel 2017-11-21 14:47:56 +01:00 коммит произвёл Steve French
Родитель a821df3f1a
Коммит 5702591fc6
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -1406,6 +1406,7 @@ smb2_get_dfs_refer(const unsigned int xid, struct cifs_ses *ses,
} while (rc == -EAGAIN);
if (rc) {
if (rc != -ENOENT)
cifs_dbg(VFS, "ioctl error in smb2_get_dfs_refer rc=%d\n", rc);
goto out;
}