Searched refs:nb_bytes (Results 1 – 3 of 3) sorted by relevance
894 unsigned data_bytes = end->offset - (start->offset + start->nb_bytes); in perform_cow()900 assert(start->nb_bytes <= UINT_MAX - end->nb_bytes); in perform_cow()901 assert(start->nb_bytes + end->nb_bytes <= UINT_MAX - data_bytes); in perform_cow()902 assert(start->offset + start->nb_bytes <= end->offset); in perform_cow()904 if ((start->nb_bytes == 0 && end->nb_bytes == 0) || m->skip_cow) { in perform_cow()911 merge_reads = start->nb_bytes && end->nb_bytes && data_bytes <= 16384; in perform_cow()913 buffer_size = start->nb_bytes + data_bytes + end->nb_bytes; in perform_cow()920 assert(QEMU_ALIGN_UP(start->nb_bytes, align) <= in perform_cow()921 UINT_MAX - end->nb_bytes); in perform_cow()922 buffer_size = QEMU_ALIGN_UP(start->nb_bytes, align) + end->nb_bytes; in perform_cow()[all …]
2461 if (m->cow_start.nb_bytes == 0 && m->cow_end.nb_bytes == 0) { in merge_cow()2478 if (l2meta_cow_start(m) + m->cow_start.nb_bytes != offset) { in merge_cow()2481 assert(m->cow_start.nb_bytes == 0); in merge_cow()2489 assert(m->cow_end.nb_bytes == 0); in merge_cow()2521 m->cow_start.nb_bytes); in is_zero_cow()2527 m->cow_end.nb_bytes); in is_zero_cow()2547 unsigned nb_bytes = m->cow_end.offset + m->cow_end.nb_bytes - in handle_alloc_space() local2550 if (!m->cow_start.nb_bytes && !m->cow_end.nb_bytes) { in handle_alloc_space()2566 ret = qcow2_pre_write_overlap_check(bs, 0, start_offset, nb_bytes, in handle_alloc_space()2573 ret = bdrv_co_pwrite_zeroes(s->data_file, start_offset, nb_bytes, in handle_alloc_space()[all …]
435 unsigned nb_bytes; member818 return m->offset + m->cow_end.offset + m->cow_end.nb_bytes; in l2meta_cow_end()