mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
30b8346cc3
commit
0c88f1970c
3 changed files with 0 additions and 152 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue