diff options
author | Christoph Hellwig <hch@lst.de> | 2022-04-15 06:52:40 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-17 19:49:58 -0600 |
commit | f09dac9afb8e3ce4b6485dbc091a9b9c742db023 (patch) | |
tree | e5411c32ff73ec854e7ba1bf552ba4e2a48c2344 /fs | |
parent | c1e7b24416400ef13ff92a1c60c336c9a2834d7b (diff) | |
download | linux-f09dac9afb8e3ce4b6485dbc091a9b9c742db023.tar.bz2 |
ntfs3: use bdev_logical_block_size instead of open coding it
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ntfs3/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |