]> Git Repo - linux.git/blobdiff - fs/ext3/super.c
block: Do away with the notion of hardsect_size
[linux.git] / fs / ext3 / super.c
index 599dbfe504c39ef8370dd28a4c65aa05346499b4..acbb94fdf90378cf9b6cc0ea07564a60cc81a1c8 100644 (file)
@@ -1696,7 +1696,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
                goto failed_mount;
        }
 
-       hblock = bdev_hardsect_size(sb->s_bdev);
+       hblock = bdev_logical_block_size(sb->s_bdev);
        if (sb->s_blocksize != blocksize) {
                /*
                 * Make sure the blocksize for the filesystem is larger
@@ -2119,7 +2119,7 @@ static journal_t *ext3_get_dev_journal(struct super_block *sb,
        }
 
        blocksize = sb->s_blocksize;
-       hblock = bdev_hardsect_size(bdev);
+       hblock = bdev_logical_block_size(bdev);
        if (blocksize < hblock) {
                printk(KERN_ERR
                        "EXT3-fs: blocksize too small for journal device.\n");
This page took 0.030144 seconds and 4 git commands to generate.