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 2958f4e6f222..a30549f7a305 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -2962,7 +2962,7 @@ static journal_t *ext4_get_dev_journal(struct super_block *sb, | |||
2962 | } | 2962 | } |
2963 | 2963 | ||
2964 | blocksize = sb->s_blocksize; | 2964 | blocksize = sb->s_blocksize; |
2965 | hblock = bdev_hardsect_size(bdev); | 2965 | hblock = bdev_logical_block_size(bdev); |
2966 | if (blocksize < hblock) { | 2966 | if (blocksize < hblock) { |
2967 | printk(KERN_ERR | 2967 | printk(KERN_ERR |
2968 | "EXT4-fs: blocksize too small for journal device.\n"); | 2968 | "EXT4-fs: blocksize too small for journal device.\n"); |