|
@@ -3624,10 +3624,6 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
|
|
sbi->s_addr_per_block_bits = ilog2(EXT4_ADDR_PER_BLOCK(sb));
|
|
sbi->s_addr_per_block_bits = ilog2(EXT4_ADDR_PER_BLOCK(sb));
|
|
sbi->s_desc_per_block_bits = ilog2(EXT4_DESC_PER_BLOCK(sb));
|
|
sbi->s_desc_per_block_bits = ilog2(EXT4_DESC_PER_BLOCK(sb));
|
|
|
|
|
|
- /* Do we have standard group size of blocksize * 8 blocks ? */
|
|
|
|
- if (sbi->s_blocks_per_group == blocksize << 3)
|
|
|
|
- set_opt2(sb, STD_GROUP_SIZE);
|
|
|
|
-
|
|
|
|
for (i = 0; i < 4; i++)
|
|
for (i = 0; i < 4; i++)
|
|
sbi->s_hash_seed[i] = le32_to_cpu(es->s_hash_seed[i]);
|
|
sbi->s_hash_seed[i] = le32_to_cpu(es->s_hash_seed[i]);
|
|
sbi->s_def_hash_version = es->s_def_hash_version;
|
|
sbi->s_def_hash_version = es->s_def_hash_version;
|
|
@@ -3697,6 +3693,10 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
|
|
goto failed_mount;
|
|
goto failed_mount;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /* Do we have standard group size of clustersize * 8 blocks ? */
|
|
|
|
+ if (sbi->s_blocks_per_group == clustersize << 3)
|
|
|
|
+ set_opt2(sb, STD_GROUP_SIZE);
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Test whether we have more sectors than will fit in sector_t,
|
|
* Test whether we have more sectors than will fit in sector_t,
|
|
* and whether the max offset is addressable by the page cache.
|
|
* and whether the max offset is addressable by the page cache.
|