@@ -668,10 +668,9 @@ static int ext2_setup_super (struct super_block * sb,
668
668
es -> s_max_mnt_count = cpu_to_le16 (EXT2_DFL_MAX_MNT_COUNT );
669
669
le16_add_cpu (& es -> s_mnt_count , 1 );
670
670
if (test_opt (sb , DEBUG ))
671
- ext2_msg (sb , KERN_INFO , "%s, %s, bs=%lu, fs=%lu, gc=%lu, "
671
+ ext2_msg (sb , KERN_INFO , "%s, %s, bs=%lu, gc=%lu, "
672
672
"bpg=%lu, ipg=%lu, mo=%04lx]" ,
673
673
EXT2FS_VERSION , EXT2FS_DATE , sb -> s_blocksize ,
674
- sbi -> s_frag_size ,
675
674
sbi -> s_groups_count ,
676
675
EXT2_BLOCKS_PER_GROUP (sb ),
677
676
EXT2_INODES_PER_GROUP (sb ),
@@ -1012,14 +1011,7 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent)
1012
1011
}
1013
1012
}
1014
1013
1015
- sbi -> s_frag_size = EXT2_MIN_FRAG_SIZE <<
1016
- le32_to_cpu (es -> s_log_frag_size );
1017
- if (sbi -> s_frag_size == 0 )
1018
- goto cantfind_ext2 ;
1019
- sbi -> s_frags_per_block = sb -> s_blocksize / sbi -> s_frag_size ;
1020
-
1021
1014
sbi -> s_blocks_per_group = le32_to_cpu (es -> s_blocks_per_group );
1022
- sbi -> s_frags_per_group = le32_to_cpu (es -> s_frags_per_group );
1023
1015
sbi -> s_inodes_per_group = le32_to_cpu (es -> s_inodes_per_group );
1024
1016
1025
1017
sbi -> s_inodes_per_block = sb -> s_blocksize / EXT2_INODE_SIZE (sb );
@@ -1045,11 +1037,10 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent)
1045
1037
goto failed_mount ;
1046
1038
}
1047
1039
1048
- if (sb -> s_blocksize != sbi -> s_frag_size ) {
1040
+ if (es -> s_log_frag_size != es -> s_log_block_size ) {
1049
1041
ext2_msg (sb , KERN_ERR ,
1050
- "error: fragsize %lu != blocksize %lu"
1051
- "(not supported yet)" ,
1052
- sbi -> s_frag_size , sb -> s_blocksize );
1042
+ "error: fragsize log %u != blocksize log %u" ,
1043
+ le32_to_cpu (es -> s_log_frag_size ), sb -> s_blocksize_bits );
1053
1044
goto failed_mount ;
1054
1045
}
1055
1046
@@ -1066,12 +1057,6 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent)
1066
1057
sbi -> s_blocks_per_group , sbi -> s_inodes_per_group + 3 );
1067
1058
goto failed_mount ;
1068
1059
}
1069
- if (sbi -> s_frags_per_group > sb -> s_blocksize * 8 ) {
1070
- ext2_msg (sb , KERN_ERR ,
1071
- "error: #fragments per group too big: %lu" ,
1072
- sbi -> s_frags_per_group );
1073
- goto failed_mount ;
1074
- }
1075
1060
if (sbi -> s_inodes_per_group < sbi -> s_inodes_per_block ||
1076
1061
sbi -> s_inodes_per_group > sb -> s_blocksize * 8 ) {
1077
1062
ext2_msg (sb , KERN_ERR ,
0 commit comments