Re: [PATCH][v2] blk-iolatency: fix max_depth comparisons

2018-07-11 Thread Jens Axboe
On 7/11/18 8:34 AM, Josef Bacik wrote: > 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. Thanks Josef, applied for 4.19. -- Jens Axboe

[PATCH][v2] blk-iolatency: fix max_depth comparisons

2018-07-11 Thread Josef Bacik
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 Signed-off-by: Josef Bacik --- - use UINT_MAX instead of INT_MAX. block/blk-iolatency.c | 12 ++