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>
This commit is contained in:
parent
2109464184
commit
d26e2903fc
|
@ -3533,8 +3533,6 @@ again:
|
||||||
ctx->total_len = ctx->len - iov_iter_count(to);
|
ctx->total_len = ctx->len - iov_iter_count(to);
|
||||||
}
|
}
|
||||||
|
|
||||||
cifs_stats_bytes_read(tcon, ctx->total_len);
|
|
||||||
|
|
||||||
/* mask nodata case */
|
/* mask nodata case */
|
||||||
if (rc == -ENODATA)
|
if (rc == -ENODATA)
|
||||||
rc = 0;
|
rc = 0;
|
||||||
|
|
Loading…
Reference in New Issue