diff mbox series

[RFC,7/8] btrfs: fix variable type in btrfs_bio_add_page

Message ID 20210520062255.4908-8-chaitanya.kulkarni@wdc.com (mailing list archive)
State Not Applicable
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 ret unsigned int since bio_add_zone_append_page() now
returns unsigned int.

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

Patch

diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 074a78a202b8..6ef276a95237 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -3158,8 +3158,8 @@  static bool btrfs_bio_add_page(struct bio *bio, struct page *page,
 			       unsigned long bio_flags)
 {
 	const sector_t sector = disk_bytenr >> SECTOR_SHIFT;
+	unsigned int ret;
 	bool contig;
-	int ret;
 
 	if (prev_bio_flags != bio_flags)
 		return false;