Commit d26e2903 authored by Steve French's avatar Steve French
Browse files

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: default avatarSteve French <stfrench@microsoft.com>
Reviewed-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
parent 21094641
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;