diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2020-02-05 14:20:35 +0300 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2020-03-18 14:03:46 -0400 |
commit | 0c88f1970c769289fa49361bc3f00b5fba9d5d0e (patch) | |
tree | 368fc9a8d452ec636ca0e9e3e8b2ac9ea040e51c /util | |
parent | 30b8346cc3e1e9d73d55bb442e2b4a670dccd444 (diff) | |
download | qemu-0c88f1970c769289fa49361bc3f00b5fba9d5d0e.zip qemu-0c88f1970c769289fa49361bc3f00b5fba9d5d0e.tar.gz qemu-0c88f1970c769289fa49361bc3f00b5fba9d5d0e.tar.bz2 |
hbitmap: drop meta bitmaps as they are unused
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20200205112041.6003-5-vsementsov@virtuozzo.com
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/hbitmap.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/util/hbitmap.c b/util/hbitmap.c index 26145d4..b6d4b99 100644 --- a/util/hbitmap.c +++ b/util/hbitmap.c @@ -905,22 +905,6 @@ bool hbitmap_merge(const HBitmap *a, const HBitmap *b, HBitmap *result) return true; } -HBitmap *hbitmap_create_meta(HBitmap *hb, int chunk_size) -{ - assert(!(chunk_size & (chunk_size - 1))); - assert(!hb->meta); - hb->meta = hbitmap_alloc(hb->size << hb->granularity, - hb->granularity + ctz32(chunk_size)); - return hb->meta; -} - -void hbitmap_free_meta(HBitmap *hb) -{ - assert(hb->meta); - hbitmap_free(hb->meta); - hb->meta = NULL; -} - char *hbitmap_sha256(const HBitmap *bitmap, Error **errp) { size_t size = bitmap->sizes[HBITMAP_LEVELS - 1] * sizeof(unsigned long); |