diff options
author | Steve French <stfrench@microsoft.com> | 2019-02-11 16:38:12 -0500 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-03-04 21:05:35 -0500 |
commit | d26e2903fc10cfa2d3b8587b9eb8cf7c2a3ff2f5 (patch) | |
tree | cd9cb07009ce73b8d44d46729ca2fb79b6d66410 /fs/cifs/file.c | |
parent | 2109464184919f81efd593b4008291448c522815 (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/file.c')
-rw-r--r-- | fs/cifs/file.c | 2 |
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: | |||
3533 | ctx->total_len = ctx->len - iov_iter_count(to); | 3533 | ctx->total_len = ctx->len - iov_iter_count(to); |
3534 | } | 3534 | } |
3535 | 3535 | ||
3536 | cifs_stats_bytes_read(tcon, ctx->total_len); | ||
3537 | |||
3538 | /* mask nodata case */ | 3536 | /* mask nodata case */ |
3539 | if (rc == -ENODATA) | 3537 | if (rc == -ENODATA) |
3540 | rc = 0; | 3538 | rc = 0; |