commit: Use bdrv_append() in commit_start()
commit6a63419980499b4fad1416326dc98609380c4df8
authorAlberto Garcia <berto@igalia.com>
Wed, 3 Apr 2019 14:37:48 +0000 (3 17:37 +0300)
committerMax Reitz <mreitz@redhat.com>
Tue, 7 May 2019 15:14:21 +0000 (7 17:14 +0200)
tree7b82148a26a857d54363509cf6d360138404708a
parent0b3ca76e52f025caf234b77d471465e983a711d0
commit: Use bdrv_append() in commit_start()

This function combines bdrv_set_backing_hd() and bdrv_replace_node()
so we can use it to simplify the code a bit in commit_start().

Signed-off-by: Alberto Garcia <berto@igalia.com>
Message-id: 20190403143748.9790-1-berto@igalia.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/commit.c