Skip to content

Commit

Permalink
block: return unsigned int from bdev_io_min
Browse files Browse the repository at this point in the history
[ Upstream commit 46fd48ab3ea3eb3bb215684bd66ea3d260b091a9 ]

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]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
Christoph Hellwig authored and gregkh committed Dec 5, 2024
1 parent b4cf0e7 commit 3947b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,7 @@ static inline unsigned int queue_io_min(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));
}
Expand Down

0 comments on commit 3947b10

Please sign in to comment.