]> git.proxmox.com Git - mirror_qemu.git/commit - block/dirty-bitmap.c
block: simplify code around releasing bitmaps
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 11 Jun 2018 18:53:31 +0000 (14:53 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 11 Jun 2018 18:53:31 +0000 (14:53 -0400)
commitb133c27f5dc59969574b0715e5837d32c99caa86
tree688494a6ce095e1265f966f4e038e22edb0766ee
parentab41fc4853cc0cf01ed4903ffe7c36e3768b538f
block: simplify code around releasing bitmaps

QLIST_REMOVE does not require walking the list, and once the "bitmap"
argument is removed from bdrv_do_release_matching_dirty_bitmap_locked
the code simplifies a lot and it is worth inlining everything in the
callers of bdrv_do_release_matching_dirty_bitmap.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20180326104037.6894-1-pbonzini@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
block/dirty-bitmap.c