History

block: return unsigned int from bdev_io_min

The underlying limit is defined as an unsigned int, so return that from bdev_io_min as well.

Christoph Hellwig committed 1 year ago

Commit 46fd48a1 parent 3802f731 file · +1 −1Browse files

Showing the changes to include/linux/blkdev.h (1 of 1 file). Show all

Unified · Split

include/linux/blkdev.h+1−1
@@ -1261,7 +1261,7 @@ static inline unsigned int queue_io_min(const struct request_queue *q) · 1260 unmodified lines
12611261 return q->limits.io_min;
12621262 }
12631263
1264−static inline int bdev_io_min(struct block_device *bdev)
1264+static inline unsigned int bdev_io_min(struct block_device *bdev)
12651265 {
12661266 return queue_io_min(bdev_get_queue(bdev));
12671267 }