Skip to content

Commit 46fd48a

Browse files
Christoph Hellwigaxboe
Christoph Hellwig
authored andcommitted
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. Fixes: ac481c2 ("block: Topology ioctls") Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Reviewed-by: John Garry <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 3802f73 commit 46fd48a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/blkdev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ static inline unsigned int queue_io_min(const struct request_queue *q)
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
}

0 commit comments

Comments
 (0)