projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9e4cd1b
)
[PATCH] check_data_endianess left in half-done state
author
Jens Axboe
<axboe@suse.de>
Tue, 14 Feb 2006 09:20:22 +0000
(10:20 +0100)
committer
Jens Axboe
<axboe@suse.de>
Tue, 14 Feb 2006 09:20:22 +0000
(10:20 +0100)
blktrace.h
patch
|
blob
|
blame
|
history
diff --git
a/blktrace.h
b/blktrace.h
index ca7c25ff8014541bfbe1b0db4559b90854153360..604704896710d5b0ccdc67a5497cccf799ce7f9d 100644
(file)
--- a/
blktrace.h
+++ b/
blktrace.h
@@
-112,16
+112,14
@@
static inline void trace_to_cpu(struct blk_io_trace *t)
/*
* check whether data is native or not
*/
/*
* check whether data is native or not
*/
-static inline int check_data_endianness(
struct blk_io_trace *bit
)
+static inline int check_data_endianness(
u32 magic
)
{
{
- u32 magic;
-
- if ((bit->magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) {
+ if ((magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) {
data_is_native = 1;
return 0;
}
data_is_native = 1;
return 0;
}
- magic = __bswap_32(
bit->
magic);
+ magic = __bswap_32(magic);
if ((magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) {
data_is_native = 0;
return 0;
if ((magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) {
data_is_native = 0;
return 0;