]> git.baikalelectronics.ru Git - kernel.git/commit
cfq-iosched: Convert slice_resid from u64 to s64
authorJan Kara <jack@suse.cz>
Tue, 28 Jun 2016 07:04:00 +0000 (09:04 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 28 Jun 2016 14:21:46 +0000 (08:21 -0600)
commitd9fe73489184bd374f722e5ef790472c35fea757
tree819d98cc9cafe4a47dd2fcd162e6c251a1e9e4bc
parentfbc781591388b5046c2336c5a253baa3334cfa10
cfq-iosched: Convert slice_resid from u64 to s64

slice_resid can be both positive and negative. Commit aa795a966fc0
(cfq-iosched: Convert from jiffies to nanoseconds) converted it from
long to u64. Although this did not introduce any functional regression
(the operations just overflow and the result was fine), it is certainly
wrong and could cause issues in future. So convert the type to more
appropriate s64.

Fixes: aa795a966fc0e97073dc23c0ef171a487c11a618
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/cfq-iosched.c