]> git.baikalelectronics.ru Git - kernel.git/commit
blk-iolatency: fix max_depth comparisons
authorJosef Bacik <josef@toxicpanda.com>
Wed, 11 Jul 2018 14:34:42 +0000 (10:34 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Jul 2018 14:37:38 +0000 (08:37 -0600)
commitd63f59e95a529d14fdaeb4d1e6d1cb8c8af0451f
tree07136f08be61683a7ccfdbf3af286dec401880cc
parentb8b70ad62d8f5694017a40ff1cd7fedd7305aa19
blk-iolatency: fix max_depth comparisons

max_depth used to be a u64, but I changed it to a unsigned int but
didn't convert my comparisons over everywhere.  Fix by using UINT_MAX
everywhere instead of (u64)-1.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iolatency.c