projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1e7b24
)
ntfs3: use bdev_logical_block_size instead of open coding it
author
Christoph Hellwig
<hch@lst.de>
Fri, 15 Apr 2022 04:52:40 +0000
(06:52 +0200)
committer
Jens 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
patch
|
blob
|
history
diff --git
a/fs/ntfs3/super.c
b/fs/ntfs3/super.c
index 278dcf502410231b3af89241b9cc0eef0af382db..cd30e81abbce0e25c5089224f4d05f8892305499 100644
(file)
--- 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;