[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [Qemu-devel] [PATCH 1/5] migration: Remove unused fun
From: |
Amit Shah |
Subject: |
Re: [Qemu-trivial] [Qemu-devel] [PATCH 1/5] migration: Remove unused functions |
Date: |
Tue, 24 Feb 2015 14:58:29 +0530 |
On (Thu) 19 Feb 2015 [18:12:19], Thomas Huth wrote:
> dup_mig_bytes_transferred(), skipped_mig_bytes_transferred(),
> migrate_rdma_pin_all(), qsb_clone() and qsb_set_length()
> are completely unused and thus can be deleted.
>
> Signed-off-by: Thomas Huth <address@hidden>
> Cc: Juan Quintela <address@hidden>
> Cc: Amit Shah <address@hidden>
> ---
> arch_init.c | 10 -------
> include/migration/migration.h | 3 --
> include/migration/qemu-file.h | 2 -
> migration/migration.c | 9 -------
> migration/qemu-file-buf.c | 53
> -----------------------------------------
> 5 files changed, 0 insertions(+), 77 deletions(-)
>
> diff --git a/arch_init.c b/arch_init.c
> index 89c8fa4..ad5ce28 100644
> --- a/arch_init.c
> +++ b/arch_init.c
> @@ -249,21 +249,11 @@ static void acct_clear(void)
> memset(&acct_info, 0, sizeof(acct_info));
> }
>
> -uint64_t dup_mig_bytes_transferred(void)
> -{
> - return acct_info.dup_pages * TARGET_PAGE_SIZE;
> -}
> -
> uint64_t dup_mig_pages_transferred(void)
> {
> return acct_info.dup_pages;
> }
>
> -uint64_t skipped_mig_bytes_transferred(void)
> -{
> - return acct_info.skipped_pages * TARGET_PAGE_SIZE;
> -}
These could be used for reporting; Juan, any idea why these aren't
used?
Rest of the patch is fine.
Amit
- [Qemu-trivial] [PATCH v2 0/5] Remove unused functions, Thomas Huth, 2015/02/19
- [Qemu-trivial] [PATCH 4/5] util: Remove unused functions, Thomas Huth, 2015/02/19
- [Qemu-trivial] [PATCH 2/5] ui: Removed unused functions, Thomas Huth, 2015/02/19
- [Qemu-trivial] [PATCH 5/5] xen: Remove xen_cmos_set_s3_resume(), Thomas Huth, 2015/02/19
- [Qemu-trivial] [PATCH 3/5] ui/vnc: Remove vnc_stop_worker_thread(), Thomas Huth, 2015/02/19
- [Qemu-trivial] [PATCH 1/5] migration: Remove unused functions, Thomas Huth, 2015/02/19
- Re: [Qemu-trivial] [Qemu-devel] [PATCH 1/5] migration: Remove unused functions,
Amit Shah <=
- Re: [Qemu-trivial] [PATCH v2 0/5] Remove unused functions, Michael Tokarev, 2015/02/28