• Home
  • Raw
  • Download

Lines Matching refs:cluster_size

40     size_t size = s->cluster_size;  in write_refcount_block()
64 s->refcount_block_cache = qemu_malloc(s->cluster_size); in qcow2_refcount_init()
104 s->cluster_size); in load_refcount_block()
236 int64_t new_block = alloc_clusters_noref(bs, s->cluster_size); in alloc_refcount_block()
249 memset(s->refcount_block_cache, 0, s->cluster_size); in alloc_refcount_block()
259 ret = update_refcount(bs, new_block, s->cluster_size, 1); in alloc_refcount_block()
266 memset(s->refcount_block_cache, 0, s->cluster_size); in alloc_refcount_block()
273 s->cluster_size); in alloc_refcount_block()
336 s->cluster_size; in alloc_refcount_block()
337 uint64_t table_offset = meta_offset + blocks_clusters * s->cluster_size; in alloc_refcount_block()
338 uint16_t *new_blocks = qemu_mallocz(blocks_clusters * s->cluster_size); in alloc_refcount_block()
341 assert(meta_offset >= (s->free_cluster_index * s->cluster_size)); in alloc_refcount_block()
350 new_table[blocks_used + i] = meta_offset + (i * s->cluster_size); in alloc_refcount_block()
363 blocks_clusters * s->cluster_size); in alloc_refcount_block()
478 start = offset & ~(s->cluster_size - 1); in update_refcount()
479 last = (offset + length - 1) & ~(s->cluster_size - 1); in update_refcount()
481 cluster_offset += s->cluster_size) in update_refcount()
639 assert(size > 0 && size <= s->cluster_size); in qcow2_alloc_bytes()
641 s->free_byte_offset = qcow2_alloc_clusters(bs, s->cluster_size); in qcow2_alloc_bytes()
647 free_in_cluster = s->cluster_size - in qcow2_alloc_bytes()
648 (s->free_byte_offset & (s->cluster_size - 1)); in qcow2_alloc_bytes()
656 if ((offset & (s->cluster_size - 1)) != 0) in qcow2_alloc_bytes()
659 offset = qcow2_alloc_clusters(bs, s->cluster_size); in qcow2_alloc_bytes()
663 cluster_offset = s->free_byte_offset & ~(s->cluster_size - 1); in qcow2_alloc_bytes()
664 if ((cluster_offset + s->cluster_size) == offset) { in qcow2_alloc_bytes()
733 start = offset & ~(s->cluster_size - 1); in qcow2_create_refcount_update()
734 last = (offset + size - 1) & ~(s->cluster_size - 1); in qcow2_create_refcount_update()
736 cluster_offset += s->cluster_size) { in qcow2_create_refcount_update()
902 start = offset & ~(s->cluster_size - 1); in inc_refcounts()
903 last = (offset + size - 1) & ~(s->cluster_size - 1); in inc_refcounts()
905 cluster_offset += s->cluster_size) { in inc_refcounts()
990 offset, s->cluster_size); in check_refcounts_l2()
993 if (offset & (s->cluster_size - 1)) { in check_refcounts_l2()
1071 l2_offset, s->cluster_size); in check_refcounts_l1()
1074 if (l2_offset & (s->cluster_size - 1)) { in check_refcounts_l1()
1119 0, s->cluster_size); in qcow2_check_refcounts()
1151 if (offset & (s->cluster_size - 1)) { in qcow2_check_refcounts()
1166 offset, s->cluster_size); in qcow2_check_refcounts()