[PATCH] Missing ->cpu endianness conversion
authorNathan Scott <nathans@sgi.com>
Tue, 6 Sep 2005 06:05:07 +0000 (08:05 +0200)
committerJens Axboe <axboe@suse.de>
Tue, 6 Sep 2005 06:05:07 +0000 (08:05 +0200)
blktrace.h

index 521015e402c33761b72f38fc4dd54b0f33710808..91c386bd2c2ddab23d0f7fb705fee9c9563ac570 100644 (file)
@@ -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);
 }