diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-03-24 04:05:51 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-24 08:09:00 -0400 |
commit | e0dc81bec0927fa0c8aabc521793161909eef7a5 (patch) | |
tree | 6a3516ed95324fc33c09f3d94c086f09c8144395 /kernel/trace/blktrace.c | |
parent | 65796348e09880e12b97267d39b8857c758440a6 (diff) |
blktrace: fix t_error()
Impact: fix error flag output
t_error() should return t->error but not t->sector.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <49C8945F.5020802@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/blktrace.c')
-rw-r--r-- | kernel/trace/blktrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c index 9af41430ee54..f69f8bd8bef9 100644 --- a/kernel/trace/blktrace.c +++ b/kernel/trace/blktrace.c | |||
@@ -968,7 +968,7 @@ static inline unsigned long long t_sector(const struct trace_entry *ent) | |||
968 | 968 | ||
969 | static inline __u16 t_error(const struct trace_entry *ent) | 969 | static inline __u16 t_error(const struct trace_entry *ent) |
970 | { | 970 | { |
971 | return te_blk_io_trace(ent)->sector; | 971 | return te_blk_io_trace(ent)->error; |
972 | } | 972 | } |
973 | 973 | ||
974 | static __u64 get_pdu_int(const struct trace_entry *ent) | 974 | static __u64 get_pdu_int(const struct trace_entry *ent) |