Searched refs:nb_clusters (Results 1 – 5 of 5) sorted by relevance
/openbmc/qemu/block/ |
H A D | qcow2-cluster.c | 1307 .nb_clusters = nb_clusters, in calculate_l2_meta() 1516 nb_clusters = in handle_copied() 1520 nb_clusters = MIN(nb_clusters, s->l2_slice_size - l2_index); in handle_copied() 1522 nb_clusters = MIN(nb_clusters, BDRV_REQUEST_MAX_BYTES >> s->cluster_bits); in handle_copied() 1681 nb_clusters = in handle_alloc() 1685 nb_clusters = MIN(nb_clusters, s->l2_slice_size - l2_index); in handle_alloc() 1695 nb_clusters = count_single_write_clusters(bs, nb_clusters, in handle_alloc() 1917 nb_clusters = MIN(nb_clusters, s->l2_slice_size - l2_index); in discard_in_l2_slice() 1992 return nb_clusters; in discard_in_l2_slice() 2056 nb_clusters = MIN(nb_clusters, s->l2_slice_size - l2_index); in zero_in_l2_slice() [all …]
|
H A D | qcow2-refcount.c | 972 uint64_t i, nb_clusters, refcount; in alloc_clusters_noref() local 980 nb_clusters = size_to_clusters(s, size); in alloc_clusters_noref() 982 for(i = 0; i < nb_clusters; i++) { in alloc_clusters_noref() 1039 assert(nb_clusters >= 0); in qcow2_alloc_clusters_at() 1040 if (nb_clusters == 0) { in qcow2_alloc_clusters_at() 1047 for(i = 0; i < nb_clusters; i++) { in qcow2_alloc_clusters_at() 2116 if (cluster >= *nb_clusters) { in check_refblocks() 2798 nb_clusters = size_to_clusters(s, size); in qcow2_check_refcounts() 2799 if (nb_clusters > INT_MAX) { in qcow2_check_refcounts() 2808 &nb_clusters); in qcow2_check_refcounts() [all …]
|
H A D | trace-events | 84 qcow2_skip_cow(void *co, uint64_t offset, int nb_clusters) "co %p offset 0x%" PRIx64 " nb_clusters … 90 …offset, uint64_t host_offset, int nb_clusters) "co %p guest_offset 0x%" PRIx64 " host_offset 0x%" … 92 qcow2_cluster_link_l2(void *co, int nb_clusters) "co %p nb_clusters %d"
|
H A D | qcow2.h | 452 int nb_clusters; member 874 int64_t nb_clusters);
|
H A D | qcow2.c | 2580 trace_qcow2_skip_cow(qemu_coroutine_self(), m->offset, m->nb_clusters); in handle_alloc_space() 4560 int64_t nb_clusters = MIN( in qcow2_co_truncate() local 4569 .nb_clusters = nb_clusters, in qcow2_co_truncate() 4575 .offset = nb_clusters << s->cluster_bits, in qcow2_co_truncate() 4591 guest_offset += nb_clusters * s->cluster_size; in qcow2_co_truncate() 4592 host_offset += nb_clusters * s->cluster_size; in qcow2_co_truncate() 4593 nb_new_data_clusters -= nb_clusters; in qcow2_co_truncate()
|