]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
qcow2: removed unused depends_on field
authorFrediano Ziglio <freddy77@gmail.com>
Wed, 7 Sep 2011 14:19:17 +0000 (16:19 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 12 Sep 2011 13:17:17 +0000 (15:17 +0200)
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-cluster.c
block/qcow2.h

index e06be648766c31ceef5a717f3642a302106138ce..113db8b414a3bf595895637530a885c7c0731d05 100644 (file)
@@ -694,7 +694,7 @@ err:
  * If the offset is not found, allocate a new cluster.
  *
  * If the cluster was already allocated, m->nb_clusters is set to 0,
- * m->depends_on is set to NULL and the other fields in m are meaningless.
+ * other fields in m are meaningless.
  *
  * If the cluster is newly allocated, m->nb_clusters is set to the number of
  * contiguous clusters that have been allocated. In this case, the other
@@ -736,7 +736,6 @@ again:
 
         cluster_offset &= ~QCOW_OFLAG_COPIED;
         m->nb_clusters = 0;
-        m->depends_on = NULL;
 
         goto out;
     }
index c8ca3bc574b44dff78b71e649769abad6addf9b3..531af3948b33d9005aa9e47b361a9dbdc58376e5 100644 (file)
@@ -148,7 +148,6 @@ typedef struct QCowL2Meta
     int n_start;
     int nb_available;
     int nb_clusters;
-    struct QCowL2Meta *depends_on;
     CoQueue dependent_requests;
 
     QLIST_ENTRY(QCowL2Meta) next_in_flight;