]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
block: return unsigned int from bdev_io_min
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Nov 2024 07:26:02 +0000 (08:26 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Nov 2024 14:19:48 +0000 (07:19 -0700)
The underlying limit is defined as an unsigned int, so return that from
bdev_io_min as well.

Fixes: ac481c20ef8f ("block: Topology ioctls")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20241119072602.1059488-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h

index a1fd0ddce5cf7649ba8a448d6f60ed2e23239c4e..195db38fda1604245f5d9f7f16c634eaa5a4cdd3 100644 (file)
@@ -1261,7 +1261,7 @@ static inline unsigned int queue_io_min(const struct request_queue *q)
        return q->limits.io_min;
 }
 
-static inline int bdev_io_min(struct block_device *bdev)
+static inline unsigned int bdev_io_min(struct block_device *bdev)
 {
        return queue_io_min(bdev_get_queue(bdev));
 }