]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ntfs3: use bdev_logical_block_size instead of open coding it
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:40 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:58 +0000 (19:49 -0600)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20220415045258.199825-10-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
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;