block: Move BlockAcctStats into BlockBackend
commit7f0e9da6f134c5303be51333696e1ff54697f3e0
authorMax Reitz <mreitz@redhat.com>
Mon, 19 Oct 2015 15:53:21 +0000 (19 17:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 23 Oct 2015 16:18:23 +0000 (23 18:18 +0200)
treea8f3b081651b4fe8a767bc3bbb2e0b726c1388e8
parent53d8f9d8fbf85f04d423958248f8c2fbe1ece192
block: Move BlockAcctStats into BlockBackend

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.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block/block-backend.c
block/io.c
block/qapi.c
include/block/block.h
include/block/block_int.h