[PATCH] blkparse: reverse the order of the skips out for when verbose is enabled
authorAlan D. Brunelle <Alan.Brunelle@hp.com>
Thu, 19 Jan 2006 14:15:45 +0000 (15:15 +0100)
committerJens Axboe <axboe@suse.de>
Thu, 19 Jan 2006 14:15:45 +0000 (15:15 +0100)
blkparse.c

index 4a603d26eb6d2217379758c9ad50b325cb29cf93..7a86d0c21a9f93d2e2fdec5b71ae55ca30e88e74 100644 (file)
@@ -344,7 +344,7 @@ static void collect_pdi_skips(struct per_dev_info *pdi)
 
        pdi->skips = 0;
        pdi->seq_skips = 0;
-       for (sip = pdi->skips_tail; sip != NULL; sip = sip->prev) {
+       for (sip = pdi->skips_head; sip != NULL; sip = sip->next) {
                pdi->skips += 1;
                pdi->seq_skips += (sip->end - sip->start + 1);
                if (verbose)