diff options
| author | Christoph Hellwig <[email protected]> | 2024-11-19 16:09:18 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2024-11-20 02:07:13 +0000 |
| commit | 5a9d1b83e5334915c651604648c20a9fc64d47a3 (patch) | |
| tree | 4d4a5ead12a042b4f937ae766583d4745b264618 | |
| parent | block: req->bio is always set in the merge code (diff) | |
| download | kernel-5a9d1b83e5334915c651604648c20a9fc64d47a3.tar.gz kernel-5a9d1b83e5334915c651604648c20a9fc64d47a3.zip | |
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 <[email protected]>
Reviewed-by: John Garry <[email protected]>
Reviewed-by: Martin K. Petersen <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
| -rw-r--r-- | include/linux/blkdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 31867de88213..97c89c0c1398 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1275,7 +1275,7 @@ static inline unsigned int queue_io_opt(const struct request_queue *q) return q->limits.io_opt; } -static inline int bdev_io_opt(struct block_device *bdev) +static inline unsigned int bdev_io_opt(struct block_device *bdev) { return queue_io_opt(bdev_get_queue(bdev)); } |
