]> git.ipfire.org Git - thirdparty/qemu.git/commit
util/hbitmap: update orig_size on truncate
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Mon, 5 Aug 2019 12:01:20 +0000 (15:01 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 1 Oct 2019 21:58:28 +0000 (16:58 -0500)
commitfc5c701636127a0b90cd7ab564da0354d06809dc
treeb2eb97a8a5ec3d15c26d8bd045cb44111b01a421
parentc430d7684e0afc1c07bbc844a90e39311783b469
util/hbitmap: update orig_size on truncate

Without this, hbitmap_next_zero and hbitmap_next_dirty_area are broken
after truncate. So, orig_size is broken since it's introduction in
76d570dc495c56bb.

Fixes: 76d570dc495c56bb
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20190805120120.23585-1-vsementsov@virtuozzo.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
(cherry picked from commit 4e4de222799634d8159ee7b9303b9e1b45c6be2c)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
util/hbitmap.c