]> git.proxmox.com Git - mirror_qemu.git/commit
block: use 'unsigned' for in_flight field on driver state
authorDenis V. Lunev <den@openvz.org>
Mon, 30 May 2022 10:39:57 +0000 (12:39 +0200)
committerVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Wed, 29 Jun 2022 07:57:02 +0000 (10:57 +0300)
commit1b8f777673985af366de099ad4e41d334b36fb12
treefb72b20d87e4222f2ebea1359916ac9526a724d8
parent8bb100c9e2dc1fe0e33283b0c43252dbaf4eb71b
block: use 'unsigned' for in_flight field on driver state

This patch makes in_flight field 'unsigned' for BDRVNBDState and
MirrorBlockJob. This matches the definition of this field on BDS
and is generically correct - we should never get negative value here.

Signed-off-by: Denis V. Lunev <den@openvz.org>
CC: John Snow <jsnow@redhat.com>
CC: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
CC: Kevin Wolf <kwolf@redhat.com>
CC: Hanna Reitz <hreitz@redhat.com>
CC: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
block/mirror.c
block/nbd.c