block: Inline bdrv_detach_child()
commit00eb93b5886519a35a06bf403e5be4c4cb3df25a
authorVladimir Sementsov-Ogievskiy <vladimir.sementsov-ogievskiy@openvz.org>
Mon, 7 Nov 2022 16:35:55 +0000 (7 19:35 +0300)
committerKevin Wolf <kwolf@redhat.com>
Thu, 15 Dec 2022 15:07:42 +0000 (15 16:07 +0100)
treeb6c9d91a609f410304b5fcd2c8dc8ca3dc469cd4
parent48804eebd4a327e4b11f902ba80a00876ee53a43
block: Inline bdrv_detach_child()

The only caller is bdrv_root_unref_child(), let's just do the logic
directly in it. It simplifies further conversion of
bdrv_root_unref_child() to transaction actions.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@openvz.org>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20221107163558.618889-2-vsementsov@yandex-team.ru>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c