diff options
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 811011fc5c94..f7ea0224f535 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -1485,7 +1485,7 @@ static int ext4_fill_super (struct super_block *sb, void *data, int silent) | |||
1485 | */ | 1485 | */ |
1486 | if (blocksize != EXT4_MIN_BLOCK_SIZE) { | 1486 | if (blocksize != EXT4_MIN_BLOCK_SIZE) { |
1487 | logic_sb_block = sb_block * EXT4_MIN_BLOCK_SIZE; | 1487 | logic_sb_block = sb_block * EXT4_MIN_BLOCK_SIZE; |
1488 | offset = sector_div(logic_sb_block, blocksize); | 1488 | offset = do_div(logic_sb_block, blocksize); |
1489 | } else { | 1489 | } else { |
1490 | logic_sb_block = sb_block; | 1490 | logic_sb_block = sb_block; |
1491 | } | 1491 | } |
@@ -1591,7 +1591,7 @@ static int ext4_fill_super (struct super_block *sb, void *data, int silent) | |||
1591 | brelse (bh); | 1591 | brelse (bh); |
1592 | sb_set_blocksize(sb, blocksize); | 1592 | sb_set_blocksize(sb, blocksize); |
1593 | logic_sb_block = sb_block * EXT4_MIN_BLOCK_SIZE; | 1593 | logic_sb_block = sb_block * EXT4_MIN_BLOCK_SIZE; |
1594 | offset = sector_div(logic_sb_block, blocksize); | 1594 | offset = do_div(logic_sb_block, blocksize); |
1595 | bh = sb_bread(sb, logic_sb_block); | 1595 | bh = sb_bread(sb, logic_sb_block); |
1596 | if (!bh) { | 1596 | if (!bh) { |
1597 | printk(KERN_ERR | 1597 | printk(KERN_ERR |