diff mbox series

[RFC,8/8] block: fix variable type for zero pages

Message ID 20210520062255.4908-9-chaitanya.kulkarni@wdc.com
State New
Headers show
Series block: fix bio_add_XXX_page() return type | expand

Commit Message

Chaitanya Kulkarni May 20, 2021, 6:22 a.m. UTC
Make variable bi_size unsigned int since bio_add_page() now returns
unsigned int.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
---
 block/blk-lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/block/blk-lib.c b/block/blk-lib.c
index 7b256131b20b..67062066c293 100644
--- a/block/blk-lib.c
+++ b/block/blk-lib.c
@@ -305,7 +305,7 @@  static int __blkdev_issue_zero_pages(struct block_device *bdev,
 {
 	struct request_queue *q = bdev_get_queue(bdev);
 	struct bio *bio = *biop;
-	int bi_size = 0;
+	unsigned int bi_size = 0;
 	unsigned int sz;
 
 	if (!q)