diff options
author | Pavel Shilovsky <pshilov@microsoft.com> | 2019-01-26 12:21:32 -0800 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-05-02 21:41:31 +0100 |
commit | 10113f160c0d99795a65c65bc04cac6924bd4145 (patch) | |
tree | e3cefa775f647f916290738290cdcc093a35687c | |
parent | 3cb991aed82a9a6b1ddbaf53adc9d0af987a5042 (diff) | |
download | linux-stable-10113f160c0d99795a65c65bc04cac6924bd4145.tar.gz linux-stable-10113f160c0d99795a65c65bc04cac6924bd4145.tar.bz2 linux-stable-10113f160c0d99795a65c65bc04cac6924bd4145.zip |
CIFS: Do not count -ENODATA as failure for query directory
commit 8e6e72aeceaaed5aeeb1cb43d3085de7ceb14f79 upstream.
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | fs/cifs/smb2pdu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 6a5b70240a08..5fc7decf38e5 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -2260,8 +2260,8 @@ SMB2_query_directory(const unsigned int xid, struct cifs_tcon *tcon, if (rc == -ENODATA && rsp->hdr.Status == STATUS_NO_MORE_FILES) { srch_inf->endOfSearch = true; rc = 0; - } - cifs_stats_fail_inc(tcon, SMB2_QUERY_DIRECTORY_HE); + } else + cifs_stats_fail_inc(tcon, SMB2_QUERY_DIRECTORY_HE); goto qdir_exit; } |