summaryrefslogtreecommitdiff
path: root/fs/cifs
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2019-02-11 15:38:12 -0600
committerSteve French <stfrench@microsoft.com>2019-03-04 20:05:35 -0600
commitd26e2903fc10cfa2d3b8587b9eb8cf7c2a3ff2f5 (patch)
treecd9cb07009ce73b8d44d46729ca2fb79b6d66410 /fs/cifs
parent2109464184919f81efd593b4008291448c522815 (diff)
smb3: fix bytes_read statistics
/proc/fs/cifs/Stats bytes_read was double counting reads when uncached (ie mounted with cache=none) Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/file.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 659ce1b92c44..da1f05f4ac0c 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -3533,8 +3533,6 @@ again:
ctx->total_len = ctx->len - iov_iter_count(to);
}
- cifs_stats_bytes_read(tcon, ctx->total_len);
-
/* mask nodata case */
if (rc == -ENODATA)
rc = 0;