projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f79c4a
)
[PATCH] Missing ->cpu endianness conversion
author
Nathan Scott
<nathans@sgi.com>
Tue, 6 Sep 2005 06:05:07 +0000
(08:05 +0200)
committer
Jens Axboe
<axboe@suse.de>
Tue, 6 Sep 2005 06:05:07 +0000
(08:05 +0200)
blktrace.h
patch
|
blob
|
blame
|
history
diff --git
a/blktrace.h
b/blktrace.h
index 521015e402c33761b72f38fc4dd54b0f33710808..91c386bd2c2ddab23d0f7fb705fee9c9563ac570 100644
(file)
--- a/
blktrace.h
+++ b/
blktrace.h
@@
-51,6
+51,7
@@
static inline void trace_to_be(struct blk_io_trace *t)
t->bytes = cpu_to_be32(t->bytes);
t->action = cpu_to_be32(t->action);
t->pid = cpu_to_be32(t->pid);
+ t->cpu = cpu_to_be16(t->cpu);
t->error = cpu_to_be16(t->error);
t->pdu_len = cpu_to_be16(t->pdu_len);
}
@@
-64,6
+65,7
@@
static inline void trace_to_cpu(struct blk_io_trace *t)
t->bytes = be32_to_cpu(t->bytes);
t->action = be32_to_cpu(t->action);
t->pid = be32_to_cpu(t->pid);
+ t->cpu = be16_to_cpu(t->cpu);
t->error = be16_to_cpu(t->error);
t->pdu_len = be16_to_cpu(t->pdu_len);
}