summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilov@microsoft.com>2019-01-26 12:21:32 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-06 17:31:34 +0100
commit1e6bb03a0b87addc736cfa78e6b5ed32a0a8baa8 (patch)
treeb380ce74f5664fcca1e8f410953b71dace21c65f /fs
parentefa83c74f83b26ebc01461662632a16ee1eae227 (diff)
downloadlinux-exynos-1e6bb03a0b87addc736cfa78e6b5ed32a0a8baa8.tar.gz
linux-exynos-1e6bb03a0b87addc736cfa78e6b5ed32a0a8baa8.tar.bz2
linux-exynos-1e6bb03a0b87addc736cfa78e6b5ed32a0a8baa8.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> CC: Stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/smb2pdu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index c0f8087d9819..fd2d199dd413 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -3071,8 +3071,8 @@ SMB2_query_directory(const unsigned int xid, struct cifs_tcon *tcon,
rsp->hdr.sync_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;
}