Home
last modified time | relevance | path

Searched refs:cluster_index (Results 1 – 1 of 1) sorted by relevance

/external/qemu/block/
Dqcow2-refcount.c118 static int get_refcount(BlockDriverState *bs, int64_t cluster_index) in get_refcount() argument
125 refcount_table_index = cluster_index >> (s->cluster_bits - REFCOUNT_SHIFT); in get_refcount()
138 block_index = cluster_index & in get_refcount()
178 static int64_t alloc_refcount_block(BlockDriverState *bs, int64_t cluster_index) in alloc_refcount_block() argument
187 refcount_table_index = cluster_index >> (s->cluster_bits - REFCOUNT_SHIFT); in alloc_refcount_block()
244 refcount_table_index, cluster_index << s->cluster_bits, new_block); in alloc_refcount_block()
247 if (in_same_refcount_block(s, new_block, cluster_index << s->cluster_bits)) { in alloc_refcount_block()
484 int64_t cluster_index = cluster_offset >> s->cluster_bits; in update_refcount() local
489 table_index = cluster_index >> (s->cluster_bits - REFCOUNT_SHIFT); in update_refcount()
503 new_block = alloc_refcount_block(bs, cluster_index); in update_refcount()
[all …]