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)
commita284390b397ae2f95de799bc591efbfe54bf0907
tree07136f08be61683a7ccfdbf3af286dec401880cc
parent88b7210c81096c018f5836aff4749743c0d34623
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