qcow2: get rid of qcow2_backing_read1 routine
commit546a7dc40e8b8b6440a052e2b5cdfe9aadcaccf6
authorEdgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
Tue, 12 Dec 2017 14:40:54 +0000 (12 17:40 +0300)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Dec 2017 14:03:41 +0000 (22 15:03 +0100)
tree9af1c17b56077a2cda687ff8e7b6d8df49b1964a
parentc200c4a470fc89d9a2b2d1884b140b03fd31981f
qcow2: get rid of qcow2_backing_read1 routine

Since bdrv_co_preadv does all neccessary checks including
reading after the end of the backing file, avoid duplication
of verification before bdrv_co_preadv call.

Signed-off-by: Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c
block/qcow2.h