block: Use bdrv_cow_child() in bdrv_co_truncate()
commit23b93525a2f30915f6c8418eb23db6912a3b5811
authorMax Reitz <mreitz@redhat.com>
Thu, 18 Jun 2020 15:39:28 +0000 (18 17:39 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 7 Sep 2020 10:31:31 +0000 (7 12:31 +0200)
tree8411cecf95d52bb5689cbcb157f70acc223fb3db
parentdcf3f9b268a5c04bd94d721b81774092d7170cc4
block: Use bdrv_cow_child() in bdrv_co_truncate()

The condition modified here is not about potentially filtered children,
but only about COW sources (i.e. traditional backing files).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
block/io.c