diff options
author | Vladimir Sementsov-Ogievskiy | 2020-02-05 12:20:35 +0100 |
---|---|---|
committer | John Snow | 2020-03-18 19:03:46 +0100 |
commit | 0c88f1970c769289fa49361bc3f00b5fba9d5d0e (patch) | |
tree | 368fc9a8d452ec636ca0e9e3e8b2ac9ea040e51c /util | |
parent | hbitmap: unpublish hbitmap_iter_skip_words (diff) | |
download | qemu-0c88f1970c769289fa49361bc3f00b5fba9d5d0e.tar.gz qemu-0c88f1970c769289fa49361bc3f00b5fba9d5d0e.tar.xz qemu-0c88f1970c769289fa49361bc3f00b5fba9d5d0e.zip |
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 26145d4b9e..b6d4b99a06 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); |