[PATCH] blkparse: __account_c() needs to take a signed integer
authorJens Axboe <axboe@suse.de>
Fri, 13 Jan 2006 12:26:27 +0000 (13:26 +0100)
committerJens Axboe <axboe@suse.de>
Fri, 13 Jan 2006 12:26:27 +0000 (13:26 +0100)
Otherwise requeues passing negative byte count don't work as expected.

blkparse.c

index ebe0f5d49074c145e18d8ffcf7883e22460ce8c2..456f6008b1e8b009aefc51927b7114ae34726332 100644 (file)
@@ -849,7 +849,7 @@ static inline void account_queue(struct blk_io_trace *t,
        }
 }
 
-static inline void __account_c(struct io_stats *ios, int rw, unsigned int bytes)
+static inline void __account_c(struct io_stats *ios, int rw, int bytes)
 {
        if (rw) {
                ios->cwrites++;