From: Christoph Hellwig Date: Tue, 15 Feb 2022 09:11:46 +0000 (+0100) Subject: ntfs3: use bdev_logical_block_size instead of open coding it X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=31674116ffd7c7f058fa67762541f904c0c0884c;p=users%2Fhch%2Fblock.git ntfs3: use bdev_logical_block_size instead of open coding it Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index 278dcf502410..cd30e81abbce 100644 --- a/fs/ntfs3/super.c +++ b/fs/ntfs3/super.c @@ -920,7 +920,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, + err = ntfs_init_from_boot(sb, bdev_logical_block_size(bdev), bdev_nr_bytes(bdev)); if (err) goto out;