Lines Matching refs:top
37 BlockBackend *top; member
72 BlockDriverState *top_bs = blk_bs(s->top); in commit_abort()
126 blk_unref(s->top); in commit_clean()
138 len = blk_co_getlength(s->top); in commit_run()
156 buf = blk_blockalign(s->top, COMMIT_BUFFER_SIZE); in commit_run()
170 ret = blk_co_is_allocated_above(s->top, s->base_overlay, true, in commit_run()
177 ret = blk_co_pread(s->top, offset, n, buf, 0); in commit_run()
256 BlockDriverState *base, BlockDriverState *top, in commit_start() argument
272 assert(top != bs); in commit_start()
274 if (bdrv_skip_filters(top) == bdrv_skip_filters(base)) { in commit_start()
287 top_size = bdrv_getlength(top); in commit_start()
326 commit_top_bs->total_sectors = top->total_sectors; in commit_start()
328 ret = bdrv_append(commit_top_bs, top, errp); in commit_start()
346 s->base_overlay = bdrv_find_overlay(top, base); in commit_start()
364 for (iter = top; iter != base; iter = bdrv_filter_or_cow_bs(iter)) { in commit_start()
406 s->top = blk_new(s->common.job.aio_context, 0, BLK_PERM_ALL); in commit_start()
407 ret = blk_insert_bs(s->top, top, errp); in commit_start()
411 blk_set_disable_request_queuing(s->top, true); in commit_start()
417 trace_commit_start(bs, base, top, s); in commit_start()
430 if (s->top) { in commit_start()
431 blk_unref(s->top); in commit_start()
440 bdrv_drained_begin(top); in commit_start()
442 bdrv_replace_node(commit_top_bs, top, &error_abort); in commit_start()
444 bdrv_drained_end(top); in commit_start()