]> www.infradead.org Git - users/hch/block.git/commitdiff
ntfs3: use bdev_logical_block_size instead of open coding it
authorChristoph Hellwig <hch@lst.de>
Tue, 15 Feb 2022 09:11:46 +0000 (10:11 +0100)
committerChristoph Hellwig <hch@lst.de>
Sun, 10 Apr 2022 06:26:09 +0000 (08:26 +0200)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
fs/ntfs3/super.c

index 278dcf502410231b3af89241b9cc0eef0af382db..cd30e81abbce0e25c5089224f4d05f8892305499 100644 (file)
@@ -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;