* [Patch] fix include statement in stats.h
@ 2009-04-20 14:05 Martin Peschke
2009-04-21 7:21 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Martin Peschke @ 2009-04-20 14:05 UTC (permalink / raw)
To: linux-btrace
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;
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [Patch] fix include statement in stats.h
2009-04-20 14:05 [Patch] fix include statement in stats.h Martin Peschke
@ 2009-04-21 7:21 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2009-04-21 7:21 UTC (permalink / raw)
To: linux-btrace
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-21 7:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-20 14:05 [Patch] fix include statement in stats.h Martin Peschke
2009-04-21 7:21 ` Jens Axboe
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).