Blame SOURCES/0105-ntfs3-use-bdev_nr_bytes-instead-of-open-coding-it.patch

2cbd18
From d54f13a8e479adbeea4585c62dbf0cc85cedf73c Mon Sep 17 00:00:00 2001
2cbd18
From: Christoph Hellwig <hch@lst.de>
2cbd18
Date: Mon, 18 Oct 2021 11:37:15 -0600
2cbd18
Subject: [Backport d54f13a8e479] ntfs3: use bdev_nr_bytes instead of open
2cbd18
 coding it
2cbd18
2cbd18
Use the proper helper to read the block device size.
2cbd18
2cbd18
Signed-off-by: Christoph Hellwig <hch@lst.de>
2cbd18
Link: https://lore.kernel.org/r/20211018101130.1838532-21-hch@lst.de
2cbd18
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2cbd18
---
2cbd18
 src/super.c | 2 +-
2cbd18
 1 file changed, 1 insertion(+), 1 deletion(-)
2cbd18
2cbd18
diff --git a/src/super.c b/src/super.c
2cbd18
index d41d76979e121fd9e836ef0072b122ab6de3735b..29813200c7af9f71bc6b1217d249996215ffe1bc 100644
2cbd18
--- a/src/super.c
2cbd18
+++ b/src/super.c
2cbd18
@@ -921,7 +921,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
2cbd18
 
2cbd18
 	/* Parse boot. */
2cbd18
 	err = ntfs_init_from_boot(sb, rq ? queue_logical_block_size(rq) : 512,
2cbd18
-				  bdev->bd_inode->i_size);
2cbd18
+				  bdev_nr_bytes(bdev));
2cbd18
 	if (err)
2cbd18
 		goto out;
2cbd18
 
2cbd18
-- 
2cbd18
2.31.1
2cbd18