diff mbox series

[1/6] block: return unsigned int from bdev_io_opt

Message ID 20241119160932.1327864-2-hch@lst.de (mailing list archive)
State New
Headers show
Series [1/6] block: return unsigned int from bdev_io_opt | expand

Commit Message

Christoph Hellwig Nov. 19, 2024, 4:09 p.m. UTC
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>
---
 include/linux/blkdev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

John Garry Nov. 19, 2024, 4:27 p.m. UTC | #1
On 19/11/2024 16:09, Christoph Hellwig wrote:
> 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>
diff mbox series

Patch

diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 195db38fda16..37439acfa34e 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1271,7 +1271,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));
 }