diff options
author | Christoph Hellwig <hch@lst.de> | 2022-04-15 06:52:40 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-18 03:49:58 +0200 |
commit | f09dac9afb8e3ce4b6485dbc091a9b9c742db023 (patch) | |
tree | e5411c32ff73ec854e7ba1bf552ba4e2a48c2344 /fs/ntfs3 | |
parent | btrfs: use bdev_max_active_zones instead of open coding it (diff) | |
download | linux-f09dac9afb8e3ce4b6485dbc091a9b9c742db023.tar.xz linux-f09dac9afb8e3ce4b6485dbc091a9b9c742db023.zip |
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/ntfs3')
-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; |