diff options
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index c191d0f65fed..f016707597a7 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -3035,7 +3035,7 @@ static journal_t *ext4_get_dev_journal(struct super_block *sb, | |||
3035 | } | 3035 | } |
3036 | 3036 | ||
3037 | blocksize = sb->s_blocksize; | 3037 | blocksize = sb->s_blocksize; |
3038 | hblock = bdev_hardsect_size(bdev); | 3038 | hblock = bdev_logical_block_size(bdev); |
3039 | if (blocksize < hblock) { | 3039 | if (blocksize < hblock) { |
3040 | ext4_msg(sb, KERN_ERR, | 3040 | ext4_msg(sb, KERN_ERR, |
3041 | "blocksize too small for journal device"); | 3041 | "blocksize too small for journal device"); |