Lines Matching refs:super

110 	if ((start < 1) || (start > EXT2_INODES_PER_GROUP(fs->super))) {  in e2fsck_discard_inodes()
142 EXT2_INODES_PER_BLOCK(fs->super)); in e2fsck_discard_inodes()
143 count -= (blk * EXT2_INODES_PER_BLOCK(fs->super) - start); in e2fsck_discard_inodes()
145 num = count / EXT2_INODES_PER_BLOCK(fs->super); in e2fsck_discard_inodes()
201 blk64_t first_free = ext2fs_blocks_count(fs->super); in check_block_bitmaps()
226 if ((B2C(fs->super->s_first_data_block) < in check_block_bitmaps()
228 (B2C(ext2fs_blocks_count(fs->super)-1) > in check_block_bitmaps()
231 pctx.blk = B2C(fs->super->s_first_data_block); in check_block_bitmaps()
232 pctx.blk2 = B2C(ext2fs_blocks_count(fs->super) - 1); in check_block_bitmaps()
241 if ((B2C(fs->super->s_first_data_block) < in check_block_bitmaps()
243 (B2C(ext2fs_blocks_count(fs->super)-1) > in check_block_bitmaps()
246 pctx.blk = B2C(fs->super->s_first_data_block); in check_block_bitmaps()
247 pctx.blk2 = B2C(ext2fs_blocks_count(fs->super) - 1); in check_block_bitmaps()
256 csum_flag = EXT2_HAS_RO_COMPAT_FEATURE(fs->super, in check_block_bitmaps()
265 for (i = B2C(fs->super->s_first_data_block); in check_block_bitmaps()
266 i < ext2fs_blocks_count(fs->super); in check_block_bitmaps()
269 B2C(fs->super->s_first_data_block)) % in check_block_bitmaps()
270 fs->super->s_clusters_per_group == 0; in check_block_bitmaps()
271 int n, nbytes = fs->super->s_clusters_per_group / 8; in check_block_bitmaps()
291 B2C(i), fs->super->s_clusters_per_group, in check_block_bitmaps()
299 B2C(i), fs->super->s_clusters_per_group, in check_block_bitmaps()
307 group_free = fs->super->s_clusters_per_group - n; in check_block_bitmaps()
309 i += EXT2FS_C2B(fs, fs->super->s_clusters_per_group - 1); in check_block_bitmaps()
321 if (fs->super->s_feature_incompat & in check_block_bitmaps()
324 fs->super->s_first_meta_bg; in check_block_bitmaps()
327 fs->super->s_reserved_gdt_blocks; in check_block_bitmaps()
330 cmp_block = fs->super->s_clusters_per_group; in check_block_bitmaps()
352 EXT2FS_B2C(fs, fs->super->s_first_data_block)) % in check_block_bitmaps()
353 fs->super->s_clusters_per_group == 0) { in check_block_bitmaps()
367 blocks = fs->super->s_clusters_per_group - 1; in check_block_bitmaps()
439 first_free = ext2fs_blocks_count(fs->super); in check_block_bitmaps()
442 if ((blocks == fs->super->s_clusters_per_group) || in check_block_bitmaps()
444 EXT2FS_B2C(fs, ext2fs_blocks_count(fs->super)-1))) { in check_block_bitmaps()
453 first_free = ext2fs_blocks_count(fs->super); in check_block_bitmaps()
465 (i != ext2fs_blocks_count(fs->super)-1) && in check_block_bitmaps()
515 if (free_blocks != ext2fs_free_blocks_count(fs->super)) { in check_block_bitmaps()
517 pctx.blk = ext2fs_free_blocks_count(fs->super); in check_block_bitmaps()
521 ext2fs_free_blocks_count_set(fs->super, free_blocks); in check_block_bitmaps()
550 ext2_ino_t first_free = fs->super->s_inodes_per_group + 1; in check_inode_bitmaps()
560 (fs->super->s_inodes_count > in check_inode_bitmaps()
564 pctx.blk2 = fs->super->s_inodes_count; in check_inode_bitmaps()
573 (fs->super->s_inodes_count > in check_inode_bitmaps()
577 pctx.blk2 = fs->super->s_inodes_count; in check_inode_bitmaps()
586 csum_flag = EXT2_HAS_RO_COMPAT_FEATURE(fs->super, in check_inode_bitmaps()
597 for (i = 1; i <= fs->super->s_inodes_count && i > 0; i++) { in check_inode_bitmaps()
600 i % fs->super->s_inodes_per_group == 1) { in check_inode_bitmaps()
607 fs->super->s_inodes_per_group)) { in check_inode_bitmaps()
614 inodes = fs->super->s_inodes_per_group - 1; in check_inode_bitmaps()
685 first_free = fs->super->s_inodes_per_group + 1; in check_inode_bitmaps()
694 if ((inodes == fs->super->s_inodes_per_group) || in check_inode_bitmaps()
695 (i == fs->super->s_inodes_count)) { in check_inode_bitmaps()
715 first_free = fs->super->s_inodes_per_group + 1; in check_inode_bitmaps()
729 (i != fs->super->s_inodes_count) && in check_inode_bitmaps()
792 if (free_inodes != fs->super->s_free_inodes_count) { in check_inode_bitmaps()
794 pctx.ino = fs->super->s_free_inodes_count; in check_inode_bitmaps()
798 fs->super->s_free_inodes_count = free_inodes; in check_inode_bitmaps()
815 end = EXT2_INODES_PER_GROUP(fs->super) * fs->group_desc_count; in check_inode_end()
860 ((blk64_t)EXT2_CLUSTERS_PER_GROUP(fs->super) * fs->group_desc_count) - 1; in check_block_end()