[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/3] HBitmap: add QLIST_ENTRY to HBitmap
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH 2/3] HBitmap: add QLIST_ENTRY to HBitmap |
Date: |
Wed, 30 Oct 2013 15:08:11 +0800 |
A BlockDriverState will contain multiple bitmaps soon, add list field
into HBitmap to prepare for later changes.
Signed-off-by: Fam Zheng <address@hidden>
---
include/qemu/hbitmap.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/qemu/hbitmap.h b/include/qemu/hbitmap.h
index b6ea5c7..2281b37 100644
--- a/include/qemu/hbitmap.h
+++ b/include/qemu/hbitmap.h
@@ -17,6 +17,7 @@
#include <stdbool.h>
#include "bitops.h"
#include "host-utils.h"
+#include "qemu/queue.h"
typedef struct HBitmap HBitmap;
@@ -88,6 +89,8 @@ struct HBitmap {
* bitmap will still allocate HBITMAP_LEVELS arrays.
*/
unsigned long *levels[HBITMAP_LEVELS];
+
+ QLIST_ENTRY (HBitmap) list;
};
/**
--
1.8.3.1