aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext3/super.c')
-rw-r--r--fs/ext3/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index 599dbfe504c3..acbb94fdf903 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -1696,7 +1696,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
1696 goto failed_mount; 1696 goto failed_mount;
1697 } 1697 }
1698 1698
1699 hblock = bdev_hardsect_size(sb->s_bdev); 1699 hblock = bdev_logical_block_size(sb->s_bdev);
1700 if (sb->s_blocksize != blocksize) { 1700 if (sb->s_blocksize != blocksize) {
1701 /* 1701 /*
1702 * Make sure the blocksize for the filesystem is larger 1702 * Make sure the blocksize for the filesystem is larger
@@ -2119,7 +2119,7 @@ static journal_t *ext3_get_dev_journal(struct super_block *sb,
2119 } 2119 }
2120 2120
2121 blocksize = sb->s_blocksize; 2121 blocksize = sb->s_blocksize;
2122 hblock = bdev_hardsect_size(bdev); 2122 hblock = bdev_logical_block_size(bdev);
2123 if (blocksize < hblock) { 2123 if (blocksize < hblock) {
2124 printk(KERN_ERR 2124 printk(KERN_ERR
2125 "EXT3-fs: blocksize too small for journal device.\n"); 2125 "EXT3-fs: blocksize too small for journal device.\n");