Skip to content

Commit 5e15cc7

Browse files
Christoph Hellwiggregkh
authored andcommitted
block: return unsigned int from bdev_io_min
[ Upstream commit 46fd48a ] 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 <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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 6109256 commit 5e15cc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/blkdev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ static inline unsigned int queue_io_min(const struct request_queue *q)
12531253
return q->limits.io_min;
12541254
}
12551255

1256-
static inline int bdev_io_min(struct block_device *bdev)
1256+
static inline unsigned int bdev_io_min(struct block_device *bdev)
12571257
{
12581258
return queue_io_min(bdev_get_queue(bdev));
12591259
}

0 commit comments

Comments
 (0)