Skip to content

Commit 5a9d1b8

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: return unsigned int from bdev_io_opt
The underlying limit is defined as an unsigned int, so return that from bdev_io_opt as well. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: John Garry <john.g.garry@oracle.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Link: https://lore.kernel.org/r/20241119160932.1327864-2-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 81314bf commit 5a9d1b8

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
@@ -1275,7 +1275,7 @@ static inline unsigned int queue_io_opt(const struct request_queue *q)
12751275
return q->limits.io_opt;
12761276
}
12771277

1278-
static inline int bdev_io_opt(struct block_device *bdev)
1278+
static inline unsigned int bdev_io_opt(struct block_device *bdev)
12791279
{
12801280
return queue_io_opt(bdev_get_queue(bdev));
12811281
}

0 commit comments

Comments
 (0)