From: Jens Axboe <jens.axboe@oracle.com>
To: linux-btrace@vger.kernel.org
Subject: Re: [Patch] fix include statement in stats.h
Date: Tue, 21 Apr 2009 07:21:33 +0000 [thread overview]
Message-ID: <20090421072133.GW4593@kernel.dk> (raw)
In-Reply-To: <1240236318.4039.2.camel@kitka.ibm.com>
Applied both, thanks Martin!
On Mon, Apr 20 2009, Martin Peschke wrote:
> From: Martin Peschke <mpeschke@linux.vnet.ibm.com>
>
> Some endianess conversion macros have been moved and the corresponding
> header file is gone. Need to adapt an include statement in stats.h. The
> compiler did not complain because blkiomon.c accidently included blktrace.h
> prior to stats.h. Introduced by blktrace rewrite which became version 2.
>
> Signed-off-by: Martin Peschke <mpeschke@linux.vnet.ibm.com>
>
> ---
> stats.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/stats.h
> +++ b/stats.h
> @@ -23,7 +23,7 @@
> #define STATS_H
>
> #include <linux/types.h>
> -#include "endian.h"
> +#include "blktrace.h"
>
> struct minmax {
> __u64 min;
>
>
On Mon, Apr 20 2009, Martin Peschke wrote:
> From: Martin Peschke <mpeschke@linux.vnet.ibm.com>
>
> Fix two off-by-one issues. Last bucket of histogram was ommitted by mistake
> when being converted to big-endian or when being merged with another bucket.
>
> Signed-off-by: Martin Peschke <mpeschke@linux.vnet.ibm.com>
>
> ---
> stats.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> --- a/stats.h
> +++ b/stats.h
> @@ -124,7 +124,7 @@ static inline void histlog2_merge(struct
> {
> int i;
>
> - for (i = 0; i < h->num - 1; i++)
> + for (i = 0; i < h->num; i++)
> dst[i] += src[i];
> }
>
> @@ -132,7 +132,7 @@ static inline void histlog2_to_be(__u32
> {
> int i;
>
> - for (i = 0; i < h->num - 1; i++)
> + for (i = 0; i < h->num; i++)
> a[i] = cpu_to_be32(a[i]);
> }
>
>
>
--
Jens Axboe
prev parent reply other threads:[~2009-04-21 7:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-20 14:05 [Patch] fix include statement in stats.h Martin Peschke
2009-04-21 7:21 ` Jens Axboe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090421072133.GW4593@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=linux-btrace@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).