Lines Matching full:cluster_index
79 static int get_refcount(BlockDriverState *bs, int64_t cluster_index)
85 refcount_table_index = cluster_index >> (s->cluster_bits - REFCOUNT_SHIFT);
96 block_index = cluster_index &
166 static int64_t alloc_refcount_block(BlockDriverState *bs, int64_t cluster_index)
174 refcount_table_index = cluster_index >> (s->cluster_bits - REFCOUNT_SHIFT);
256 int64_t cluster_index = cluster_offset >> s->cluster_bits;
260 table_index = cluster_index >> (s->cluster_bits - REFCOUNT_SHIFT);
274 refcount_block_offset = alloc_refcount_block(bs, cluster_index);
280 block_index = cluster_index &
293 if (refcount == 0 && cluster_index < s->free_cluster_index) {
294 s->free_cluster_index = cluster_index;
313 int64_t cluster_index,
319 ret = update_refcount(bs, cluster_index << s->cluster_bits, 1, addend);
324 return get_refcount(bs, cluster_index);