Lines Matching refs:commit_top_bs

36     BlockDriverState *commit_top_bs;  member
53 bdrv_unfreeze_backing_chain(s->commit_top_bs, s->base_bs); in commit_prepare()
64 return bdrv_drop_intermediate(s->commit_top_bs, s->base_bs, in commit_prepare()
77 bdrv_unfreeze_backing_chain(s->commit_top_bs, s->base_bs); in commit_abort()
83 bdrv_ref(s->commit_top_bs); in commit_abort()
101 commit_top_backing_bs = s->commit_top_bs->backing->bs; in commit_abort()
106 bdrv_replace_node(s->commit_top_bs, commit_top_backing_bs, &error_abort); in commit_abort()
110 bdrv_unref(s->commit_top_bs); in commit_abort()
264 BlockDriverState *commit_top_bs = NULL; in commit_start() local
314 commit_top_bs = bdrv_new_open_driver(&bdrv_commit_top, filter_node_name, 0, in commit_start()
316 if (commit_top_bs == NULL) { in commit_start()
320 commit_top_bs->implicit = true; in commit_start()
324 commit_top_bs->never_freeze = true; 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()
329 bdrv_unref(commit_top_bs); /* referenced by new parents or failed */ in commit_start()
331 commit_top_bs = NULL; in commit_start()
335 s->commit_top_bs = commit_top_bs; in commit_start()
381 if (bdrv_freeze_backing_chain(commit_top_bs, base, errp) < 0) { in commit_start()
424 bdrv_unfreeze_backing_chain(commit_top_bs, base); in commit_start()
439 if (commit_top_bs) { in commit_start()
442 bdrv_replace_node(commit_top_bs, top, &error_abort); in commit_start()
456 BlockDriverState *commit_top_bs = NULL; in bdrv_commit() local
505 commit_top_bs = bdrv_new_open_driver(&bdrv_commit_top, NULL, BDRV_O_RDWR, in bdrv_commit()
507 if (commit_top_bs == NULL) { in bdrv_commit()
512 bdrv_set_backing_hd(commit_top_bs, backing_file_bs, &error_abort); in bdrv_commit()
513 bdrv_set_backing_hd(bs, commit_top_bs, &error_abort); in bdrv_commit()
591 bdrv_unref(commit_top_bs); in bdrv_commit()