OSDN Git Service

block: Restructure remove_file_or_backing_child()
authorHanna Reitz <hreitz@redhat.com>
Mon, 15 Nov 2021 14:54:02 +0000 (15:54 +0100)
committerHanna Reitz <hreitz@redhat.com>
Tue, 16 Nov 2021 08:43:42 +0000 (09:43 +0100)
commit562bda8bb41879eeda0bd484dd3d55134579b28e
tree25d4850fe78db386e14c11bdf1bf8b187c11ca09
parentbe64bbb0149748f3999c49b13976aafb8330ea86
block: Restructure remove_file_or_backing_child()

As of a future patch, bdrv_replace_child_tran() will take a BdrvChild **
pointer.  Prepare for that by getting such a pointer and using it where
applicable, and (dereferenced) as a parameter for
bdrv_replace_child_tran().

Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20211111120829.81329-7-hreitz@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20211115145409.176785-7-kwolf@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
block.c