Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 3160499aacb81f6735941eb4c372d87a > files > 200

kvm-83-164.el5_5.30.src.rpm

From 295dfc0a1948eb41fb9855b76d65cb6658d27b3b Mon Sep 17 00:00:00 2001
From: Eduardo Habkost <ehabkost@redhat.com>
Date: Thu, 17 Sep 2009 14:06:02 -0300
Subject: [PATCH 02/38] This function is not used anymore. It is opencoded in bdrv_flush_all() that was its only user. Upstream hasn't it either

RH-Author: Juan Quintela <quintela@redhat.com>
Message-id: <18230c6eb82125872bea047fe6b420a99f22b5b5.1249487147.git.quintela@redhat.com>
Patchwork-id: 3168
O-Subject: [PATCH 02/38] This function is not used anymore. It is opencoded in
	bdrv_flush_all() that was its only user. Upstream hasn't it either
Bugzilla: 515749
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
RH-Acked-by: Luiz Capitulino <lcapitulino@redhat.com>
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
RH-Acked-by: Markus Armbruster <armbru@redhat.com>

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 qemu/block.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 qemu/block.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/qemu/block.c b/qemu/block.c
index ca7d1c1..5967748 100644
--- a/qemu/block.c
+++ b/qemu/block.c
@@ -1124,16 +1124,6 @@ void bdrv_flush(BlockDriverState *bs)
         bdrv_flush(bs->backing_hd);
 }
 
-void bdrv_iterate_writeable(void (*it)(BlockDriverState *bs))
-{
-    BlockDriverState *bs;
-
-    for (bs = bdrv_first; bs != NULL; bs = bs->next)
-        if (bs->drv && !bdrv_is_read_only(bs) && 
-            (!bdrv_is_removable(bs) || bdrv_is_inserted(bs)))
-	    it(bs);
-}
-
 void bdrv_flush_all(void)
 {
     BlockDriverState *bs;
-- 
1.6.3.rc4.29.g8146