Commit 0096d7e749 for qemu.org

commit 0096d7e7498e85177e291fb1e7eae3e5131de90c
Author: Denis V. Lunev <den@openvz.org>
Date:   Fri Oct 30 02:06:01 2026 +0100

    block/commit: pass BDRV_WANT_PRECISE to block-status

    c33159dec790 replaced the want_zero bool with a bitmask of BDRV_WANT_*
    flags. block/commit.c was missed and still passes "true", which is
    BDRV_BLOCK_DATA, not BDRV_WANT_PRECISE. Convert it like the other
    callers.

    Fixes: c33159dec790 ("block: Expand block status mode from bool to flags")
    Reviewed-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
    Reviewed-by: Eric Blake <eblake@redhat.com>
    Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
    Signed-off-by: Denis V. Lunev <den@openvz.org>
    CC: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
    CC: John Snow <jsnow@redhat.com>
    CC: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
    CC: Eric Blake <eblake@redhat.com>
    Message-ID: <20261030010613.1612771-2-den@openvz.org>
    Signed-off-by: Eric Blake <eblake@redhat.com>

diff --git a/block/commit.c b/block/commit.c
index 2d52c39594..4e0b0f9029 100644
--- a/block/commit.c
+++ b/block/commit.c
@@ -140,8 +140,8 @@ commit_iteration(CommitBlockJob *s, int64_t offset,
     /* Copy if allocated above the base */
     WITH_GRAPH_RDLOCK_GUARD() {
         ret = bdrv_co_common_block_status_above(blk_bs(s->top),
-            s->base_overlay, true, true, offset, COMMIT_BUFFER_SIZE,
-            &bytes, NULL, NULL, NULL);
+            s->base_overlay, true, BDRV_WANT_PRECISE, offset,
+            COMMIT_BUFFER_SIZE, &bytes, NULL, NULL, NULL);
     }

     trace_commit_one_iteration(s, offset, bytes, ret);