projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9cb286
)
qcow2: drop unnecessary flush in qcow2_update_snapshot_refcount()
author
Stefan Hajnoczi
<stefanha@redhat.com>
Mon, 4 Mar 2013 14:02:35 +0000
(15:02 +0100)
committer
Stefan Hajnoczi
<stefanha@redhat.com>
Fri, 15 Mar 2013 15:07:50 +0000
(16:07 +0100)
We already flush when the function completes. There is no need to flush
after every compressed cluster.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-refcount.c
patch
|
blob
|
history
diff --git
a/block/qcow2-refcount.c
b/block/qcow2-refcount.c
index 92519ea62a7269e4c26d86a8b8df8d01f9dad7a9..9bfb390519865b06a077b86474e0c255ae64f8cf 100644
(file)
--- a/
block/qcow2-refcount.c
+++ b/
block/qcow2-refcount.c
@@
-790,10
+790,6
@@
int qcow2_update_snapshot_refcount(BlockDriverState *bs,
if (ret < 0) {
goto fail;
}
-
- /* TODO Flushing once for the whole function should
- * be enough */
- bdrv_flush(bs->file);
}
/* compressed clusters are never modified */
refcount = 2;