Received: from eggs.gnu.org ([2001:4830:134:3::10]:38039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj4XE-00065A-4k for qemu-devel@nongnu.org; Tue, 28 Oct 2014 07:02:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xj4X7-00069w-TU for qemu-devel@nongnu.org; Tue, 28 Oct 2014 07:01:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj4X7-00069i-Kp for qemu-devel@nongnu.org; Tue, 28 Oct 2014 07:01:49 -0400 Date: Tue, 28 Oct 2014 11:01:41 +0000 From: Stefan Hajnoczi Message-ID: <20141028110141.GE19211@stefanha-thinkpad.redhat.com> References: <1414256153-10148-1-git-send-email-pl@kamp.de> <1414256153-10148-2-git-send-email-pl@kamp.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SNIs70sCzqvszXB4" Content-Disposition: inline In-Reply-To: <1414256153-10148-2-git-send-email-pl@kamp.de> Subject: Re: [Qemu-devel] [PATCHv3 1/6] block: add accounting for merged requests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: kwolf@redhat.com, famz@redhat.com, benoit@irqsave.net, armbru@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com --SNIs70sCzqvszXB4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --SNIs70sCzqvszXB4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUT3eVAAoJEJykq7OBq3PI5g4IALyBDSE4cXqP75p1WDjnH5wG Kvp6l35Bc8Bjnh6/PNDh30etF/XbEp60++LXjr8pDLljoUMf3OvYRY32/sVJSCN8 ZNWek09Rwqcb2/vid72YXJlUMwaWBNchMx9jIhLu7RKtl4aJtSrLJAmbSaQUvnmT HEnW//ogZOIJwS4fxz7NK9guNJULurYqaJMWuyIagjwYyqbS02TI6rfXiYts9CoC IOo36FyZ89/35vi0XIuepGpExlVqJp7RfASVOMmPMWcxOkVroAenuE6gIStSrwu/ mf97LitW/MRv21vld3ii1gNavjzLlIqtkc3XLPx+bFG/sp2KUZfETVuKqVH9lnA= =p7h+ -----END PGP SIGNATURE----- --SNIs70sCzqvszXB4--