qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qcow2: adjust qcow2_co_flush_to_os -> qcow2_co_flush_to_disk
@ 2012-05-14 13:51 zwu.kernel
  2012-05-14 14:04 ` Kevin Wolf
  0 siblings, 1 reply; 5+ messages in thread
From: zwu.kernel @ 2012-05-14 13:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, pbonzini, wuzhy, stefanha

From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>

qcow2_co_flush_to_os() actually flush all cached data to the disk. To keep its name consistent with its actual function, adjust its name accordingly.

Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
---
 block/qcow2.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/block/qcow2.c b/block/qcow2.c
index ee4678f..a04c304 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -1435,7 +1435,7 @@ fail:
     return ret;
 }
 
-static coroutine_fn int qcow2_co_flush_to_os(BlockDriverState *bs)
+static coroutine_fn int qcow2_co_flush_to_disk(BlockDriverState *bs)
 {
     BDRVQcowState *s = bs->opaque;
     int ret;
@@ -1580,7 +1580,7 @@ static BlockDriver bdrv_qcow2 = {
 
     .bdrv_co_readv          = qcow2_co_readv,
     .bdrv_co_writev         = qcow2_co_writev,
-    .bdrv_co_flush_to_os    = qcow2_co_flush_to_os,
+    .bdrv_co_flush_to_disk    = qcow2_co_flush_to_disk,
 
     .bdrv_co_write_zeroes   = qcow2_co_write_zeroes,
     .bdrv_co_discard        = qcow2_co_discard,
-- 
1.7.6

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-05-14 14:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-14 13:51 [Qemu-devel] [PATCH] qcow2: adjust qcow2_co_flush_to_os -> qcow2_co_flush_to_disk zwu.kernel
2012-05-14 14:04 ` Kevin Wolf
2012-05-14 14:27   ` Zhi Yong Wu
2012-05-14 14:39     ` Kevin Wolf
2012-05-14 14:54       ` Zhi Yong Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).