Lines Matching refs:super
91 if (!ext2fs_has_feature_metadata_csum(ctx->fs->super)) in check_inode_bitmap_checksum()
98 nbytes = (size_t)(EXT2_INODES_PER_GROUP(ctx->fs->super) / 8); in check_inode_bitmap_checksum()
145 if (!ext2fs_has_feature_metadata_csum(ctx->fs->super)) in check_block_bitmap_checksum()
152 nbytes = (size_t)(EXT2_CLUSTERS_PER_GROUP(ctx->fs->super) / 8); in check_block_bitmap_checksum()
166 ctx->fs->super->s_first_data_block) + in check_block_bitmap_checksum()
226 if ((start < 1) || (start > EXT2_INODES_PER_GROUP(fs->super))) { in e2fsck_discard_inodes()
258 EXT2_INODES_PER_BLOCK(fs->super)); in e2fsck_discard_inodes()
259 count -= (blk * EXT2_INODES_PER_BLOCK(fs->super) - start); in e2fsck_discard_inodes()
261 num = count / EXT2_INODES_PER_BLOCK(fs->super); in e2fsck_discard_inodes()
317 blk64_t first_free = ext2fs_blocks_count(fs->super); in check_block_bitmaps()
336 if ((B2C(fs->super->s_first_data_block) < in check_block_bitmaps()
338 (B2C(ext2fs_blocks_count(fs->super)-1) > in check_block_bitmaps()
341 pctx.blk = B2C(fs->super->s_first_data_block); in check_block_bitmaps()
342 pctx.blk2 = B2C(ext2fs_blocks_count(fs->super) - 1); in check_block_bitmaps()
351 if ((B2C(fs->super->s_first_data_block) < in check_block_bitmaps()
353 (B2C(ext2fs_blocks_count(fs->super)-1) > in check_block_bitmaps()
356 pctx.blk = B2C(fs->super->s_first_data_block); in check_block_bitmaps()
357 pctx.blk2 = B2C(ext2fs_blocks_count(fs->super) - 1); in check_block_bitmaps()
370 for (i = B2C(fs->super->s_first_data_block); in check_block_bitmaps()
371 i < ext2fs_blocks_count(fs->super); in check_block_bitmaps()
374 B2C(fs->super->s_first_data_block)) % in check_block_bitmaps()
375 fs->super->s_clusters_per_group == 0; in check_block_bitmaps()
376 int n, nbytes = fs->super->s_clusters_per_group / 8; in check_block_bitmaps()
396 B2C(i), fs->super->s_clusters_per_group, in check_block_bitmaps()
401 B2C(i), fs->super->s_clusters_per_group, in check_block_bitmaps()
408 group_free = fs->super->s_clusters_per_group - n; in check_block_bitmaps()
410 i += EXT2FS_C2B(fs, fs->super->s_clusters_per_group - 1); in check_block_bitmaps()
475 first_free = ext2fs_blocks_count(fs->super); in check_block_bitmaps()
478 if ((blocks == fs->super->s_clusters_per_group) || in check_block_bitmaps()
480 EXT2FS_B2C(fs, ext2fs_blocks_count(fs->super)-1))) { in check_block_bitmaps()
489 first_free = ext2fs_blocks_count(fs->super); in check_block_bitmaps()
545 if (free_blocks != ext2fs_free_blocks_count(fs->super)) { in check_block_bitmaps()
547 pctx.blk = ext2fs_free_blocks_count(fs->super); in check_block_bitmaps()
551 ext2fs_free_blocks_count_set(fs->super, free_blocks); in check_block_bitmaps()
580 ext2_ino_t first_free = fs->super->s_inodes_per_group + 1; in check_inode_bitmaps()
590 (fs->super->s_inodes_count > in check_inode_bitmaps()
594 pctx.blk2 = fs->super->s_inodes_count; in check_inode_bitmaps()
603 (fs->super->s_inodes_count > in check_inode_bitmaps()
607 pctx.blk2 = fs->super->s_inodes_count; in check_inode_bitmaps()
626 for (i = 1; i <= fs->super->s_inodes_count && i > 0; i++) { in check_inode_bitmaps()
629 i % fs->super->s_inodes_per_group == 1) { in check_inode_bitmaps()
636 fs->super->s_inodes_per_group)) { in check_inode_bitmaps()
643 inodes = fs->super->s_inodes_per_group - 1; in check_inode_bitmaps()
714 first_free = fs->super->s_inodes_per_group + 1; in check_inode_bitmaps()
723 if ((inodes == fs->super->s_inodes_per_group) || in check_inode_bitmaps()
724 (i == fs->super->s_inodes_count)) { in check_inode_bitmaps()
744 first_free = fs->super->s_inodes_per_group + 1; in check_inode_bitmaps()
758 (i != fs->super->s_inodes_count) && in check_inode_bitmaps()
821 if (free_inodes != fs->super->s_free_inodes_count) { in check_inode_bitmaps()
823 pctx.ino = fs->super->s_free_inodes_count; in check_inode_bitmaps()
827 fs->super->s_free_inodes_count = free_inodes; in check_inode_bitmaps()
845 end = EXT2_INODES_PER_GROUP(fs->super) * fs->group_desc_count; in check_inode_end()
907 EXT2_GROUPS_TO_CLUSTERS(fs->super, fs->group_desc_count) - 1; in check_block_end()