[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/6] block migration: replace tabs by spaces.
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 3/6] block migration: replace tabs by spaces. |
Date: |
Tue, 3 Aug 2010 16:44:27 +0200 |
From: Yoshiaki Tamura <address@hidden>
Signed-off-by: Yoshiaki Tamura <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
block-migration.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/block-migration.c b/block-migration.c
index 8eda307..0bfdb73 100644
--- a/block-migration.c
+++ b/block-migration.c
@@ -346,7 +346,7 @@ static int mig_save_device_dirty(Monitor *mon, QEMUFile *f,
blk->iov.iov_len = nr_sectors * BDRV_SECTOR_SIZE;
qemu_iovec_init_external(&blk->qiov, &blk->iov, 1);
- blk->time = qemu_get_clock_ns(rt_clock);
+ blk->time = qemu_get_clock_ns(rt_clock);
blk->aiocb = bdrv_aio_readv(bmds->bs, sector, &blk->qiov,
nr_sectors, blk_mig_read_cb, blk);
@@ -449,13 +449,13 @@ static int is_stage2_completed(void)
if (block_mig_state.bulk_completed == 1) {
remaining_dirty = get_remaining_dirty();
- if (remaining_dirty == 0) {
- return 1;
- }
+ if (remaining_dirty == 0) {
+ return 1;
+ }
- bwidth = compute_read_bwidth();
+ bwidth = compute_read_bwidth();
- if ((remaining_dirty / bwidth) <=
+ if ((remaining_dirty / bwidth) <=
migrate_max_downtime()) {
/* finish stage2 because we think that we can finish remaing work
below max_downtime */
--
1.7.2
- [Qemu-devel] [PULL 0/6] Block patches, Kevin Wolf, 2010/08/03
- [Qemu-devel] [PATCH 1/6] block: Change bdrv_commit to handle multiple sectors at once, Kevin Wolf, 2010/08/03
- [Qemu-devel] [PATCH 2/6] loadvm: improve tests before bdrv_snapshot_goto(), Kevin Wolf, 2010/08/03
- [Qemu-devel] [PATCH 4/6] block: Fix bdrv_has_zero_init, Kevin Wolf, 2010/08/03
- [Qemu-devel] [PATCH 3/6] block migration: replace tabs by spaces.,
Kevin Wolf <=
- [Qemu-devel] [PATCH 5/6] block: Change bdrv_eject() not to drop the image, Kevin Wolf, 2010/08/03
- [Qemu-devel] [PATCH 6/6] ide: Avoid canceling IDE DMA, Kevin Wolf, 2010/08/03
- Re: [Qemu-devel] [PULL 0/6] Block patches, Anthony Liguori, 2010/08/09