* [PATCH v2] blktrace: Use be32_to_cpu for blk_io_trace->cpu.
@ 2011-05-25 15:48 Tao Ma
2011-05-26 19:11 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Tao Ma @ 2011-05-25 15:48 UTC (permalink / raw)
To: linux-btrace
From: Tao Ma <boyu.mt@taobao.com>
blk_io_trace->cpu is u32, so use be32_to_cpu instead.
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
---
blktrace.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/blktrace.h b/blktrace.h
index 816ce61..8b3e031 100644
--- a/blktrace.h
+++ b/blktrace.h
@@ -110,7 +110,7 @@ static inline void trace_to_cpu(struct blk_io_trace *t)
t->action = be32_to_cpu(t->action);
t->pid = be32_to_cpu(t->pid);
t->device = be32_to_cpu(t->device);
- t->cpu = be16_to_cpu(t->cpu);
+ t->cpu = be32_to_cpu(t->cpu);
t->error = be16_to_cpu(t->error);
t->pdu_len = be16_to_cpu(t->pdu_len);
}
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] blktrace: Use be32_to_cpu for blk_io_trace->cpu.
2011-05-25 15:48 [PATCH v2] blktrace: Use be32_to_cpu for blk_io_trace->cpu Tao Ma
@ 2011-05-26 19:11 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2011-05-26 19:11 UTC (permalink / raw)
To: linux-btrace
On 2011-05-25 17:48, Tao Ma wrote:
> From: Tao Ma <boyu.mt@taobao.com>
>
> blk_io_trace->cpu is u32, so use be32_to_cpu instead.
Good catch, applied!
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-26 19:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-25 15:48 [PATCH v2] blktrace: Use be32_to_cpu for blk_io_trace->cpu Tao Ma
2011-05-26 19:11 ` 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).