diff options
author | Aurelien Aptel <aaptel@suse.com> | 2017-11-21 08:47:56 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2017-12-06 13:48:01 -0500 |
commit | 5702591fc6a3f409f460def104ee149330dac82d (patch) | |
tree | 54ba9fc28c14d3d3d71e13b93d5700ace5e91252 | |
parent | a821df3f1af72aa6a0d573eea94a7dd2613e9f4e (diff) |
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>
-rw-r--r-- | fs/cifs/smb2ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index e06740436b92..ed88ab8a4774 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c | |||
@@ -1406,7 +1406,8 @@ smb2_get_dfs_refer(const unsigned int xid, struct cifs_ses *ses, | |||
1406 | } while (rc == -EAGAIN); | 1406 | } while (rc == -EAGAIN); |
1407 | 1407 | ||
1408 | if (rc) { | 1408 | if (rc) { |
1409 | cifs_dbg(VFS, "ioctl error in smb2_get_dfs_refer rc=%d\n", rc); | 1409 | if (rc != -ENOENT) |
1410 | cifs_dbg(VFS, "ioctl error in smb2_get_dfs_refer rc=%d\n", rc); | ||
1410 | goto out; | 1411 | goto out; |
1411 | } | 1412 | } |
1412 | 1413 | ||