Skip to content

Commit d54f13a

Browse files
Christoph Hellwigaxboe
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 4fcd697 commit d54f13a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ntfs3/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
921921

922922
/* Parse boot. */
923923
err = ntfs_init_from_boot(sb, rq ? queue_logical_block_size(rq) : 512,
924-
bdev->bd_inode->i_size);
924+
bdev_nr_bytes(bdev));
925925
if (err)
926926
goto out;
927927

0 commit comments

Comments
 (0)