]> git.proxmox.com Git - mirror_qemu.git/commit
block: Move bdrv_attach_child() calls up the call chain
authorKevin Wolf <kwolf@redhat.com>
Mon, 15 Jun 2015 09:53:47 +0000 (11:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 14 Jul 2015 13:55:19 +0000 (15:55 +0200)
commitdf5817926790f6e84d1936eab523556f96fa577a
tree2b0b229b756ee7314a2d9217446599ee1612acf0
parent30349fd038ffb26528fad21abe1e264031364449
block: Move bdrv_attach_child() calls up the call chain

Let the callers of bdrv_open_inherit() call bdrv_attach_child(). It
needs to be called in all cases where bdrv_open_inherit() succeeds (i.e.
returns 0) and a child_role is given.

bdrv_attach_child() is moved upwards to avoid a forward declaration.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block.c