Skip to content

Commit

Permalink
smb3: fix bytes_read statistics
Browse files Browse the repository at this point in the history
/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>
  • Loading branch information
Steve French committed Mar 5, 2019
1 parent 2109464 commit d26e290
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/cifs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -3533,8 +3533,6 @@ collect_uncached_read_data(struct cifs_aio_ctx *ctx)
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;
Expand Down

0 comments on commit d26e290

Please sign in to comment.