From d26e2903fc10cfa2d3b8587b9eb8cf7c2a3ff2f5 Mon Sep 17 00:00:00 2001 From: Steve French Date: Mon, 11 Feb 2019 15:38:12 -0600 Subject: 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 Reviewed-by: Ronnie Sahlberg --- fs/cifs/file.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'fs') 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; -- cgit v1.2.3