aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs3
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-10-18 11:37:15 -0600
committerJens Axboe <axboe@kernel.dk>2021-10-18 14:43:23 -0600
commitd54f13a8e479adbeea4585c62dbf0cc85cedf73c (patch)
tree4805f0d1ca12e9d8e8337042fb5f389891aad1a0 /fs/ntfs3
parentnilfs2: use bdev_nr_bytes instead of open coding it (diff)
downloadlinux-dev-d54f13a8e479adbeea4585c62dbf0cc85cedf73c.tar.xz
linux-dev-d54f13a8e479adbeea4585c62dbf0cc85cedf73c.zip
ntfs3: use bdev_nr_bytes instead of open coding it
Use the proper helper to read the block device size. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20211018101130.1838532-21-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/ntfs3')
-rw-r--r--fs/ntfs3/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c
index d41d76979e12..29813200c7af 100644
--- a/fs/ntfs3/super.c
+++ b/fs/ntfs3/super.c
@@ -921,7 +921,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
/* Parse boot. */
err = ntfs_init_from_boot(sb, rq ? queue_logical_block_size(rq) : 512,
- bdev->bd_inode->i_size);
+ bdev_nr_bytes(bdev));
if (err)
goto out;