block/qapi: Set s->device in bdrv_query_stats()
commit0e8f44bee998ba7711b77efee7aee0aee688b4ad
authorMax Reitz <mreitz@redhat.com>
Wed, 2 Mar 2016 17:31:08 +0000 (2 18:31 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 Mar 2016 09:59:32 +0000 (30 11:59 +0200)
treea01c81e3acdc7e61d2b362d65aa8982dba6f3449
parent5eda622768a2162993e50275b325125d4485757d
block/qapi: Set s->device in bdrv_query_stats()

This is the only instance of bdrv_query_blk_stats() accessing anything
in the BlockStats structure other than s->stats, so let us move it to
its caller (where it makes just as much sense) allowing us to make
bdrv_query_blk_stats() take a pointer to the BlockDeviceStats instead of
BlockStats.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qapi.c