diff options
author | Kevin Wolf <kwolf@redhat.com> | 2015-06-15 13:51:04 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-07-14 17:15:23 +0200 |
commit | 33a604075c51e5528eed970eeaeefe609ea2337d (patch) | |
tree | 52f4f7af38d22a372270cc25c3fd863970a341c2 /include/block | |
parent | b4b059f628173dd1d722ee8a9c592a80aec1fc2f (diff) | |
download | hqemu-33a604075c51e5528eed970eeaeefe609ea2337d.zip hqemu-33a604075c51e5528eed970eeaeefe609ea2337d.tar.gz |
block: Introduce bdrv_unref_child()
This is the counterpart for bdrv_open_child(). It decreases the
reference count of the child BDS and removes it from the list of
children of the given parent BDS.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r-- | include/block/block.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h index 5048772..37916f7 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -513,6 +513,7 @@ void bdrv_disable_copy_on_read(BlockDriverState *bs); void bdrv_ref(BlockDriverState *bs); void bdrv_unref(BlockDriverState *bs); +void bdrv_unref_child(BlockDriverState *parent, BdrvChild *child); bool bdrv_op_is_blocked(BlockDriverState *bs, BlockOpType op, Error **errp); void bdrv_op_block(BlockDriverState *bs, BlockOpType op, Error *reason); |