Home
last modified time | relevance | path

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

/external/qemu/block/
Dqcow2-refcount.c79 static int get_refcount(BlockDriverState *bs, int64_t cluster_index) in get_refcount() argument
85 refcount_table_index = cluster_index >> (s->cluster_bits - REFCOUNT_SHIFT); in get_refcount()
96 block_index = cluster_index & in get_refcount()
166 static int64_t alloc_refcount_block(BlockDriverState *bs, int64_t cluster_index) in alloc_refcount_block() argument
174 refcount_table_index = cluster_index >> (s->cluster_bits - REFCOUNT_SHIFT); in alloc_refcount_block()
256 int64_t cluster_index = cluster_offset >> s->cluster_bits; in update_refcount() local
260 table_index = cluster_index >> (s->cluster_bits - REFCOUNT_SHIFT); in update_refcount()
274 refcount_block_offset = alloc_refcount_block(bs, cluster_index); in update_refcount()
280 block_index = cluster_index & in update_refcount()
293 if (refcount == 0 && cluster_index < s->free_cluster_index) { in update_refcount()
[all …]