mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
qemu: driver: Remove pointless macro QEMU_BLOCK_STAT_TOTAL
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
f385dd3a47
commit
535b78ff03
@ -11416,18 +11416,14 @@ static int
|
|||||||
qemuDomainBlockStatsGatherTotals(qemuBlockStatsPtr data,
|
qemuDomainBlockStatsGatherTotals(qemuBlockStatsPtr data,
|
||||||
qemuBlockStatsPtr total)
|
qemuBlockStatsPtr total)
|
||||||
{
|
{
|
||||||
#define QEMU_BLOCK_STAT_TOTAL(NAME) \
|
total->wr_bytes += data->wr_bytes;
|
||||||
total->NAME += data->NAME
|
total->wr_req += data->wr_req;
|
||||||
|
total->rd_bytes += data->rd_bytes;
|
||||||
QEMU_BLOCK_STAT_TOTAL(wr_bytes);
|
total->rd_req += data->rd_req;
|
||||||
QEMU_BLOCK_STAT_TOTAL(wr_req);
|
total->flush_req += data->flush_req;
|
||||||
QEMU_BLOCK_STAT_TOTAL(rd_bytes);
|
total->wr_total_times += data->wr_total_times;
|
||||||
QEMU_BLOCK_STAT_TOTAL(rd_req);
|
total->rd_total_times += data->rd_total_times;
|
||||||
QEMU_BLOCK_STAT_TOTAL(flush_req);
|
total->flush_total_times += data->flush_total_times;
|
||||||
QEMU_BLOCK_STAT_TOTAL(wr_total_times);
|
|
||||||
QEMU_BLOCK_STAT_TOTAL(rd_total_times);
|
|
||||||
QEMU_BLOCK_STAT_TOTAL(flush_total_times);
|
|
||||||
#undef QEMU_BLOCK_STAT_TOTAL
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user