[PATCH] blkparse: more stopwatch cleanups
authorJens Axboe <axboe@suse.de>
Mon, 26 Sep 2005 13:36:19 +0000 (15:36 +0200)
committerJens Axboe <axboe@suse.de>
Mon, 26 Sep 2005 13:36:19 +0000 (15:36 +0200)
blkparse.c

index 4da4e6d69f125ce5e4fcafcb2a2567ec0c6be6c9..c9b37593d161ab28d2bf33c1b418c3c762e162bc 100644 (file)
@@ -1167,10 +1167,10 @@ static void find_genesis(void)
        }
 }
 
-static inline int check_stopwatch(struct trace *t)
+static inline int check_stopwatch(struct blk_io_trace *bit)
 {
-       if (t->bit->time < stopwatch_end &&
-           t->bit->time >= stopwatch_start)
+       if (bit->time < stopwatch_end &&
+           bit->time >= stopwatch_start)
                return 0;
 
        return 1;
@@ -1192,9 +1192,9 @@ static int sort_entries(void)
                if (verify_trace(bit))
                        continue;
 
-               t->bit->time -= genesis_time;
+               bit->time -= genesis_time;
 
-               if (check_stopwatch(t)) {
+               if (check_stopwatch(bit)) {
                        bit_free(bit);
                        t_free(t);
                        continue;