Lines Matching refs:super
40 if (ext2fs_has_feature_sparse_super2(fs->super)) { in ext2fs_bg_has_super()
41 if (group == fs->super->s_backup_bgs[0] || in ext2fs_bg_has_super()
42 group == fs->super->s_backup_bgs[1]) in ext2fs_bg_has_super()
46 if ((group <= 1) || !ext2fs_has_feature_sparse_super(fs->super)) in ext2fs_bg_has_super()
88 if (ext2fs_has_feature_meta_bg(fs->super)) in ext2fs_super_and_bgd_loc2()
89 old_desc_blocks = fs->super->s_first_meta_bg; in ext2fs_super_and_bgd_loc2()
92 fs->desc_blocks + fs->super->s_reserved_gdt_blocks; in ext2fs_super_and_bgd_loc2()
100 meta_bg_size = EXT2_DESC_PER_BLOCK(fs->super); in ext2fs_super_and_bgd_loc2()
103 if (!ext2fs_has_feature_meta_bg(fs->super) || in ext2fs_super_and_bgd_loc2()
104 (meta_bg < fs->super->s_first_meta_bg)) { in ext2fs_super_and_bgd_loc2()
173 meta_bg_size = EXT2_DESC_PER_BLOCK(fs->super); in ext2fs_super_and_bgd_loc()
193 struct ext2_super_block *super) in write_primary_superblock() argument
203 super); in write_primary_superblock()
209 new_super = (__u16 *) super; in write_primary_superblock()
231 memcpy(fs->orig_super, super, SUPERBLOCK_SIZE); in write_primary_superblock()
241 struct ext2_super_block *sb = fs->super; in ext2fs_update_dynamic_rev()
296 fs_state = fs->super->s_state; in ext2fs_flush2()
297 feature_incompat = fs->super->s_feature_incompat; in ext2fs_flush2()
299 fs->super->s_wtime = fs->now ? fs->now : time(NULL); in ext2fs_flush2()
300 fs->super->s_block_group_nr = 0; in ext2fs_flush2()
322 fs->super->s_state &= ~EXT2_VALID_FS; in ext2fs_flush2()
323 ext2fs_clear_feature_journal_needs_recovery(fs->super); in ext2fs_flush2()
335 memcpy(super_shadow, fs->super, sizeof(struct ext2_super_block)); in ext2fs_flush2()
345 super_shadow = fs->super; in ext2fs_flush2()
353 if (ext2fs_has_feature_journal_dev(fs->super)) in ext2fs_flush2()
361 if (ext2fs_has_feature_meta_bg(fs->super)) { in ext2fs_flush2()
362 old_desc_blocks = fs->super->s_first_meta_bg; in ext2fs_flush2()
397 int meta_bg = i / EXT2_DESC_PER_BLOCK(fs->super); in ext2fs_flush2()
418 fs->super->s_block_group_nr = 0; in ext2fs_flush2()
419 fs->super->s_state = fs_state; in ext2fs_flush2()
420 fs->super->s_feature_incompat = feature_incompat; in ext2fs_flush2()
422 *super_shadow = *fs->super; in ext2fs_flush2()
447 fs->super->s_state = fs_state; in ext2fs_flush2()
487 if (fs->super->s_kbytes_written && in ext2fs_close2()
491 fs->super->s_kbytes_written += stats->bytes_written >> 10; in ext2fs_close2()
494 fs->super->s_kbytes_written += meta_blks / in ext2fs_close2()