summaryrefslogtreecommitdiff
path: root/block_int.h
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2010-04-10 07:02:42 +0100
committerKevin Wolf <kwolf@redhat.com>2010-04-23 16:21:57 +0200
commit1b7bdbc13ccbec154c0ef768f70c9eb604befb8c (patch)
treece0b8db647325d9c20bc1542a9c3a9208fd7f0b4 /block_int.h
parentb66460e4e938910b0e5495e6d3d7b2d5b3cf9c99 (diff)
block: Convert bdrv_first to QTAILQ
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block_int.h')
-rw-r--r--block_int.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/block_int.h b/block_int.h
index d5a808db9f..466a38cee4 100644
--- a/block_int.h
+++ b/block_int.h
@@ -26,6 +26,7 @@
#include "block.h"
#include "qemu-option.h"
+#include "qemu-queue.h"
#define BLOCK_FLAG_ENCRYPT 1
#define BLOCK_FLAG_COMPRESS 2
@@ -180,7 +181,7 @@ struct BlockDriverState {
char device_name[32];
unsigned long *dirty_bitmap;
int64_t dirty_count;
- BlockDriverState *next;
+ QTAILQ_ENTRY(BlockDriverState) list;
void *private;
};