qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCHv3 1/6] block: add accounting for merged requests


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCHv3 1/6] block: add accounting for merged requests
Date: Tue, 28 Oct 2014 11:01:41 +0000
User-agent: Mutt/1.5.23 (2014-03-12)

On Sat, Oct 25, 2014 at 06:55:48PM +0200, Peter Lieven wrote:
> diff --git a/block/accounting.c b/block/accounting.c
> index edbb1cc..f3162d1 100644
> --- a/block/accounting.c
> +++ b/block/accounting.c
> @@ -52,3 +52,10 @@ void block_acct_highest_sector(BlockAcctStats *stats, 
> int64_t sector_num,
>          stats->wr_highest_sector = sector_num + nb_sectors - 1;
>      }
>  }
> +
> +void block_merge_done(BlockAcctStats *stats, enum BlockAcctType type,
> +                      int num_requests)
> +{
> +    assert(type < BLOCK_MAX_IOTYPE);
> +    stats->merged[type] += num_requests;
> +}

Please keep the function name consistent with other functions in this
file: block_acct_merge_done().

Stefan

Attachment: pgp_NHsNjsIKV.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]