From: Steve French Date: Mon, 11 Feb 2019 21:38:12 +0000 (-0600) Subject: smb3: fix bytes_read statistics X-Git-Tag: v5.4-rc1~1455^2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d26e2903fc10cfa2d3b8587b9eb8cf7c2a3ff2f5;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 659ce1b..da1f05f4 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;