diff options
| author | John Snow | 2015-04-18 01:49:54 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2015-04-28 15:36:10 +0200 |
| commit | 8515efbef1759b9143f06e9722c8f4e145032181 (patch) | |
| tree | d7058da418daf26e724613e2e515b8b816e10945 /include | |
| parent | block: Introduce bdrv_dirty_bitmap_granularity() (diff) | |
| download | qemu-8515efbef1759b9143f06e9722c8f4e145032181.tar.gz qemu-8515efbef1759b9143f06e9722c8f4e145032181.tar.xz qemu-8515efbef1759b9143f06e9722c8f4e145032181.zip | |
hbitmap: cache array lengths
As a convenience: between incremental backups, bitmap migrations
and bitmap persistence we seem to need to recalculate these a lot.
Because the lengths are a little bit-twiddly, let's just solidly
cache them and be done with it.
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1429314609-29776-7-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
