OSDN Git Service

qcow2: cleanup qcow2_co_pwritev_compressed to avoid the recursion
authorPavel Butsykin <pbutsykin@virtuozzo.com>
Fri, 22 Jul 2016 08:17:44 +0000 (11:17 +0300)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Sep 2016 17:06:48 +0000 (19:06 +0200)
commita2c0ca6f55fbf6cbb5540dea9783f22d99aca528
tree9024b7eb2f7559ece5e01b2f1d9310762b2d95a2
parentfcccefc57f235c0928e60bba0b7f6084677ed3df
qcow2: cleanup qcow2_co_pwritev_compressed to avoid the recursion

Now that the function uses a vector instead of a buffer, there is no
need to use recursive code.

Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
CC: Jeff Cody <jcody@redhat.com>
CC: Markus Armbruster <armbru@redhat.com>
CC: Eric Blake <eblake@redhat.com>
CC: John Snow <jsnow@redhat.com>
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c