lkml.org 
[lkml]   [2009]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 4/5] blktrace: fix t_error()
    t_error() should return t->error but not t->sector.

    Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
    ---
    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 0e91caa..f33c176 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)

    static inline __u16 t_error(const struct trace_entry *ent)
    {
    - return te_blk_io_trace(ent)->sector;
    + return te_blk_io_trace(ent)->error;
    }

    static __u64 get_pdu_int(const struct trace_entry *ent)
    --
    1.5.4.rc3


    \
     
     \ /
      Last update: 2009-03-24 09:11    [W:0.025 / U:29.340 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site