From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbPtC-0005Xo-Ld for qemu-devel@nongnu.org; Wed, 30 Oct 2013 03:08:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbPt6-00031B-77 for qemu-devel@nongnu.org; Wed, 30 Oct 2013 03:08:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbPt5-000315-Vh for qemu-devel@nongnu.org; Wed, 30 Oct 2013 03:08:20 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9U78JJL030276 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 30 Oct 2013 03:08:19 -0400 From: Fam Zheng Date: Wed, 30 Oct 2013 15:08:11 +0800 Message-Id: <1383116892-11047-3-git-send-email-famz@redhat.com> In-Reply-To: <1383116892-11047-1-git-send-email-famz@redhat.com> References: <1383116892-11047-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH 2/3] HBitmap: add QLIST_ENTRY to HBitmap List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@redhat.com A BlockDriverState will contain multiple bitmaps soon, add list field into HBitmap to prepare for later changes. Signed-off-by: Fam Zheng --- 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 #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