]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: Introduce bdrv_unref_child()
authorKevin Wolf <kwolf@redhat.com>
Mon, 15 Jun 2015 11:51:04 +0000 (13:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 14 Jul 2015 15:15:23 +0000 (17:15 +0200)
commit33a604075c51e5528eed970eeaeefe609ea2337d
tree52f4f7af38d22a372270cc25c3fd863970a341c2
parentb4b059f628173dd1d722ee8a9c592a80aec1fc2f
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>
block.c
include/block/block.h