On 06/03/2015 01:43 PM, Max Reitz wrote:
> As the comment above bdrv_get_stats() says, BlockAcctStats is something
> which belongs to the device instead of each BlockDriverState. This patch
> therefore moves it into the BlockBackend.

Again, Berto may want to eventually report stats for both BDS and BB,
but that can come later.  For now, this is reasonable refactoring.

> 
> Signed-off-by: Max Reitz <mre...@redhat.com>
> ---
>  block.c                   | 11 -----------
>  block/block-backend.c     |  5 ++++-
>  block/io.c                |  6 +++++-
>  block/qapi.c              | 24 ++++++++++++++----------
>  include/block/block.h     |  2 --
>  include/block/block_int.h |  3 ---
>  6 files changed, 23 insertions(+), 28 deletions(-)
> 

Reviewed-by: Eric Blake <ebl...@redhat.com>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to