thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone
218e99
From 7cc09be75f219d045f060ffd60e6c29125a82a8f Mon Sep 17 00:00:00 2001
218e99
From: Max Reitz <mreitz@redhat.com>
218e99
Date: Mon, 4 Nov 2013 22:32:24 +0100
218e99
Subject: [PATCH 31/87] qcow2: CHECK_OFLAG_COPIED is obsolete
218e99
218e99
RH-Author: Max Reitz <mreitz@redhat.com>
218e99
Message-id: <1383604354-12743-34-git-send-email-mreitz@redhat.com>
218e99
Patchwork-id: 55333
218e99
O-Subject: [RHEL-7.0 qemu-kvm PATCH 33/43] qcow2: CHECK_OFLAG_COPIED is obsolete
218e99
Bugzilla: 1004347
218e99
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
218e99
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
218e99
RH-Acked-by: Fam Zheng <famz@redhat.com>
218e99
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
218e99
218e99
BZ: 1004347
218e99
218e99
CHECK_OFLAG_COPIED as a parameter to check_refcounts_l1 and
218e99
check_refcounts_l2 is obselete now, since the OFLAG_COPIED consistency
218e99
check is actually no longer performed by these functions (but by
218e99
check_oflag_copied).
218e99
218e99
Signed-off-by: Max Reitz <mreitz@redhat.com>
218e99
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
218e99
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
218e99
(cherry picked from commit db0749012b3d1cf655bddb3cc79052a0fd4dc97b)
218e99
218e99
Signed-off-by: Max Reitz <mreitz@redhat.com>
218e99
---
218e99
 block/qcow2-refcount.c | 4 +---
218e99
 1 file changed, 1 insertion(+), 3 deletions(-)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 block/qcow2-refcount.c |    4 +---
218e99
 1 files changed, 1 insertions(+), 3 deletions(-)
218e99
218e99
diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c
218e99
index 927bdeb..2a589b8 100644
218e99
--- a/block/qcow2-refcount.c
218e99
+++ b/block/qcow2-refcount.c
218e99
@@ -1016,7 +1016,6 @@ static void inc_refcounts(BlockDriverState *bs,
218e99
 
218e99
 /* Flags for check_refcounts_l1() and check_refcounts_l2() */
218e99
 enum {
218e99
-    CHECK_OFLAG_COPIED = 0x1,   /* check QCOW_OFLAG_COPIED matches refcount */
218e99
     CHECK_FRAG_INFO = 0x2,      /* update BlockFragInfo counters */
218e99
 };
218e99
 
218e99
@@ -1463,8 +1462,7 @@ int qcow2_check_refcounts(BlockDriverState *bs, BdrvCheckResult *res,
218e99
 
218e99
     /* current L1 table */
218e99
     ret = check_refcounts_l1(bs, res, refcount_table, nb_clusters,
218e99
-                             s->l1_table_offset, s->l1_size,
218e99
-                             CHECK_OFLAG_COPIED | CHECK_FRAG_INFO);
218e99
+                             s->l1_table_offset, s->l1_size, CHECK_FRAG_INFO);
218e99
     if (ret < 0) {
218e99
         goto fail;
218e99
     }
218e99
-- 
218e99
1.7.1
218e99