• Home
  • Raw
  • Download

Lines Matching refs:super

111 	if ((blk < fs->super->s_first_data_block) ||  in release_inode_block()
112 (blk >= ext2fs_blocks_count(fs->super))) { in release_inode_block()
272 if (!ext2fs_has_feature_quota(ctx->fs->super)) in e2fsck_read_all_quotas()
280 qf_ino = *quota_sb_inump(ctx->fs->super, qtype); in e2fsck_read_all_quotas()
299 if (!ext2fs_has_feature_quota(ctx->fs->super)) in e2fsck_write_all_quotas()
328 if ((ino = fs->super->s_last_orphan) == 0) in release_orphan_inodes()
342 fs->super->s_last_orphan = 0; in release_orphan_inodes()
350 if (fs->super->s_state & EXT2_ERROR_FS) { in release_orphan_inodes()
356 if ((ino < EXT2_FIRST_INODE(fs->super)) || in release_orphan_inodes()
357 (ino > fs->super->s_inodes_count)) { in release_orphan_inodes()
381 ((next_ino < EXT2_FIRST_INODE(fs->super)) || in release_orphan_inodes()
382 (next_ino > fs->super->s_inodes_count))) { in release_orphan_inodes()
439 if (ext2fs_has_feature_resize_inode(fs->super) && in check_resize_inode()
440 ext2fs_has_feature_meta_bg(fs->super) && in check_resize_inode()
442 ext2fs_clear_feature_resize_inode(fs->super); in check_resize_inode()
443 fs->super->s_reserved_gdt_blocks = 0; in check_resize_inode()
451 if (!ext2fs_has_feature_resize_inode(fs->super)) { in check_resize_inode()
452 if (fs->super->s_reserved_gdt_blocks) { in check_resize_inode()
453 pctx.num = fs->super->s_reserved_gdt_blocks; in check_resize_inode()
456 fs->super->s_reserved_gdt_blocks = 0; in check_resize_inode()
466 if (ext2fs_has_feature_resize_inode(fs->super)) in check_resize_inode()
475 if (!ext2fs_has_feature_resize_inode(fs->super)) { in check_resize_inode()
500 (blk < fs->super->s_first_data_block || in check_resize_inode()
501 blk >= ext2fs_blocks_count(fs->super))) { in check_resize_inode()
510 fs->super->s_state &= ~EXT2_VALID_FS; in check_resize_inode()
524 pblk = fs->super->s_first_data_block + 1 + fs->desc_blocks; in check_resize_inode()
525 if (fs->blocksize == 1024 && fs->super->s_first_data_block == 0) in check_resize_inode()
527 for (i = 0; i < fs->super->s_reserved_gdt_blocks / 4; in check_resize_inode()
539 expect = pblk + EXT2_GROUPS_TO_BLOCKS(fs->super, j); in check_resize_inode()
557 struct ext2_super_block *sb = ctx->fs->super; in e2fsck_fix_dirhash_hint()
584 struct ext2_super_block *sb = fs->super; in check_super_block()
587 blk64_t blocks_per_group = fs->super->s_blocks_per_group; in check_super_block()
601 inodes_per_block = EXT2_INODES_PER_BLOCK(fs->super); in check_super_block()
619 blks_max = (1ULL << 32) * EXT2_MAX_BLOCKS_PER_GROUP(fs->super); in check_super_block()
620 if (ext2fs_has_feature_64bit(fs->super)) { in check_super_block()
764 if (ext2fs_has_feature_metadata_csum(fs->super) && in check_super_block()
765 ext2fs_has_feature_gdt_csum(fs->super) && in check_super_block()
767 ext2fs_clear_feature_gdt_csum(fs->super); in check_super_block()
774 if (!ext2fs_has_feature_metadata_csum(fs->super) && in check_super_block()
775 ext2fs_has_feature_csum_seed(fs->super) && in check_super_block()
777 ext2fs_clear_feature_csum_seed(fs->super); in check_super_block()
778 fs->super->s_checksum_seed = 0; in check_super_block()
783 if (ext2fs_has_feature_64bit(fs->super) && in check_super_block()
784 !ext2fs_has_feature_extents(fs->super) && in check_super_block()
786 ext2fs_set_feature_extents(fs->super); in check_super_block()
792 ext2fs_set_feature_extents(fs->super); in check_super_block()
796 if (ext2fs_has_feature_meta_bg(fs->super) && in check_super_block()
797 (fs->super->s_first_meta_bg > fs->desc_blocks)) { in check_super_block()
799 pctx.num = fs->super->s_first_meta_bg; in check_super_block()
801 ext2fs_clear_feature_meta_bg(fs->super); in check_super_block()
802 fs->super->s_first_meta_bg = 0; in check_super_block()
817 if (!ext2fs_has_feature_flex_bg(fs->super)) { in check_super_block()
940 !ext2fs_has_feature_metadata_csum(ctx->fs->super) && in check_super_block()
959 (fs->super->s_flags & EXT2_FLAGS_TEST_FILESYS) && in check_super_block()
962 fs->super->s_flags &= ~EXT2_FLAGS_TEST_FILESYS; in check_super_block()
973 fs->super->s_creator_os == EXT2_OS_HURD && in check_super_block()
974 ext2fs_has_feature_filetype(fs->super)) { in check_super_block()
976 ext2fs_clear_feature_filetype(fs->super); in check_super_block()
989 fs->super->s_rev_level == EXT2_GOOD_OLD_REV && in check_super_block()
990 (fs->super->s_feature_compat || in check_super_block()
991 fs->super->s_feature_ro_compat || in check_super_block()
992 fs->super->s_feature_incompat) && in check_super_block()
1003 fs->super->s_state &= ~EXT2_VALID_FS; in check_super_block()
1043 fs->super->s_mtime > (__u32) ctx->now) { in check_super_block()
1044 pctx.num = fs->super->s_mtime; in check_super_block()
1046 if (fs->super->s_mtime <= (__u32) ctx->now + ctx->time_fudge) in check_super_block()
1049 fs->super->s_mtime = ctx->now; in check_super_block()
1055 fs->super->s_wtime > (__u32) ctx->now) { in check_super_block()
1056 pctx.num = fs->super->s_wtime; in check_super_block()
1058 if (fs->super->s_wtime <= (__u32) ctx->now + ctx->time_fudge) in check_super_block()
1061 fs->super->s_wtime = ctx->now; in check_super_block()
1134 (fs->super->s_state & EXT2_ERROR_FS) || in check_backup_super_block()
1161 ((fs->super->x & ~FEATURE_INCOMPAT_IGNORE) != \ in check_backup_super_block()
1164 ((fs->super->x & ~FEATURE_RO_COMPAT_IGNORE) != \ in check_backup_super_block()
1167 (fs->super->x != backup_sb->x) in check_backup_super_block()
1175 memcmp(fs->super->s_uuid, backup_sb->s_uuid, in check_backup_super_block()
1176 sizeof(fs->super->s_uuid))) in check_backup_super_block()