From: Jens Axboe Date: Fri, 13 Jan 2006 12:26:27 +0000 (+0100) Subject: [PATCH] blkparse: __account_c() needs to take a signed integer X-Git-Tag: blktrace-0.99.1~137 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e21dc4dd837779466cf867a56bfd0902938188d4;p=blktrace.git [PATCH] blkparse: __account_c() needs to take a signed integer Otherwise requeues passing negative byte count don't work as expected. --- diff --git a/blkparse.c b/blkparse.c index ebe0f5d..456f600 100644 --- a/blkparse.c +++ b/blkparse.c @@ -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++;