diff options
| author | Eric Blake | 2017-09-25 16:55:12 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2017-10-06 16:28:58 +0200 |
| commit | ebfcd2e75f719c5d74ba72bbca84fa9854b6698f (patch) | |
| tree | 792c2a954aa93b0adb8863e5b5fba645f25d52b7 /scripts/checkpatch.pl | |
| parent | dirty-bitmap: Avoid size query failure during truncate (diff) | |
| download | qemu-ebfcd2e75f719c5d74ba72bbca84fa9854b6698f.tar.gz qemu-ebfcd2e75f719c5d74ba72bbca84fa9854b6698f.tar.xz qemu-ebfcd2e75f719c5d74ba72bbca84fa9854b6698f.zip | |
dirty-bitmap: Change bdrv_dirty_bitmap_size() to report bytes
We're already reporting bytes for bdrv_dirty_bitmap_granularity();
mixing bytes and sectors in our return values is a recipe for
confusion. A later cleanup will convert dirty bitmap internals
to be entirely byte-based, but in the meantime, we should report
the bitmap size in bytes.
The only external caller in qcow2-bitmap.c is temporarily more verbose
(because it is still using sector-based math), but will later be
switched to track progress by bytes instead of sectors.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
