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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index daf34b1c4fb5..af7aead1000a 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -1654,7 +1654,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
1654 * Note: s_es must be initialized as soon as possible because 1654 * Note: s_es must be initialized as soon as possible because
1655 * some ext3 macro-instructions depend on its value 1655 * some ext3 macro-instructions depend on its value
1656 */ 1656 */
1657 es = (struct ext3_super_block *) (((char *)bh->b_data) + offset); 1657 es = (struct ext3_super_block *) (bh->b_data + offset);
1658 sbi->s_es = es; 1658 sbi->s_es = es;
1659 sb->s_magic = le16_to_cpu(es->s_magic); 1659 sb->s_magic = le16_to_cpu(es->s_magic);
1660 if (sb->s_magic != EXT3_SUPER_MAGIC) 1660 if (sb->s_magic != EXT3_SUPER_MAGIC)
@@ -1765,7 +1765,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
1765 "error: can't read superblock on 2nd try"); 1765 "error: can't read superblock on 2nd try");
1766 goto failed_mount; 1766 goto failed_mount;
1767 } 1767 }
1768 es = (struct ext3_super_block *)(((char *)bh->b_data) + offset); 1768 es = (struct ext3_super_block *)(bh->b_data + offset);
1769 sbi->s_es = es; 1769 sbi->s_es = es;
1770 if (es->s_magic != cpu_to_le16(EXT3_SUPER_MAGIC)) { 1770 if (es->s_magic != cpu_to_le16(EXT3_SUPER_MAGIC)) {
1771 ext3_msg(sb, KERN_ERR, 1771 ext3_msg(sb, KERN_ERR,
@@ -2168,7 +2168,7 @@ static journal_t *ext3_get_dev_journal(struct super_block *sb,
2168 goto out_bdev; 2168 goto out_bdev;
2169 } 2169 }
2170 2170
2171 es = (struct ext3_super_block *) (((char *)bh->b_data) + offset); 2171 es = (struct ext3_super_block *) (bh->b_data + offset);
2172 if ((le16_to_cpu(es->s_magic) != EXT3_SUPER_MAGIC) || 2172 if ((le16_to_cpu(es->s_magic) != EXT3_SUPER_MAGIC) ||
2173 !(le32_to_cpu(es->s_feature_incompat) & 2173 !(le32_to_cpu(es->s_feature_incompat) &
2174 EXT3_FEATURE_INCOMPAT_JOURNAL_DEV)) { 2174 EXT3_FEATURE_INCOMPAT_JOURNAL_DEV)) {