Lines Matching refs:refcount_block

234                     void **refcount_block)  in load_refcount_block()  argument
240 refcount_block); in load_refcount_block()
254 void *refcount_block; in qcow2_get_refcount() local
276 &refcount_block); in qcow2_get_refcount()
282 *refcount = s->get_refcount(refcount_block, block_index); in qcow2_get_refcount()
284 qcow2_cache_put(s->refcount_block_cache, &refcount_block); in qcow2_get_refcount()
307 void **refcount_block) in alloc_refcount_block() argument
334 refcount_block); in alloc_refcount_block()
361 *refcount_block = NULL; in alloc_refcount_block()
394 refcount_block); in alloc_refcount_block()
399 memset(*refcount_block, 0, s->cluster_size); in alloc_refcount_block()
404 s->set_refcount(*refcount_block, block_index, 1); in alloc_refcount_block()
422 refcount_block); in alloc_refcount_block()
427 memset(*refcount_block, 0, s->cluster_size); in alloc_refcount_block()
432 qcow2_cache_entry_mark_dirty(s->refcount_block_cache, *refcount_block); in alloc_refcount_block()
460 qcow2_cache_put(s->refcount_block_cache, refcount_block); in alloc_refcount_block()
500 ret = load_refcount_block(bs, new_block, refcount_block); in alloc_refcount_block()
511 if (*refcount_block != NULL) { in alloc_refcount_block()
512 qcow2_cache_put(s->refcount_block_cache, refcount_block); in alloc_refcount_block()
816 void *refcount_block = NULL; in update_refcount() local
848 if (refcount_block) { in update_refcount()
849 qcow2_cache_put(s->refcount_block_cache, &refcount_block); in update_refcount()
851 ret = alloc_refcount_block(bs, cluster_index, &refcount_block); in update_refcount()
865 qcow2_cache_entry_mark_dirty(s->refcount_block_cache, refcount_block); in update_refcount()
870 refcount = s->get_refcount(refcount_block, block_index); in update_refcount()
886 s->set_refcount(refcount_block, block_index, refcount); in update_refcount()
894 qcow2_cache_put(s->refcount_block_cache, &refcount_block); in update_refcount()
917 if (refcount_block) { in update_refcount()
918 qcow2_cache_put(s->refcount_block_cache, &refcount_block); in update_refcount()