Lines Matching refs:super
37 if (!(fs->super->s_feature_ro_compat & in ext2fs_bg_has_super()
80 if (fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) in ext2fs_super_and_bgd_loc2()
81 old_desc_blocks = fs->super->s_first_meta_bg; in ext2fs_super_and_bgd_loc2()
84 fs->desc_blocks + fs->super->s_reserved_gdt_blocks; in ext2fs_super_and_bgd_loc2()
92 meta_bg_size = EXT2_DESC_PER_BLOCK(fs->super); in ext2fs_super_and_bgd_loc2()
95 if (!(fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) || in ext2fs_super_and_bgd_loc2()
96 (meta_bg < fs->super->s_first_meta_bg)) { in ext2fs_super_and_bgd_loc2()
165 meta_bg_size = EXT2_DESC_PER_BLOCK(fs->super); in ext2fs_super_and_bgd_loc()
185 struct ext2_super_block *super) in write_primary_superblock() argument
195 super); in write_primary_superblock()
201 new_super = (__u16 *) super; in write_primary_superblock()
223 memcpy(fs->orig_super, super, SUPERBLOCK_SIZE); in write_primary_superblock()
233 struct ext2_super_block *sb = fs->super; in ext2fs_update_dynamic_rev()
256 fs->super->s_block_group_nr = sgrp; in write_backup_super()
286 fs_state = fs->super->s_state; in ext2fs_flush2()
287 feature_incompat = fs->super->s_feature_incompat; in ext2fs_flush2()
289 fs->super->s_wtime = fs->now ? fs->now : time(NULL); in ext2fs_flush2()
290 fs->super->s_block_group_nr = 0; in ext2fs_flush2()
309 super_shadow = fs->super; in ext2fs_flush2()
318 fs->super->s_state &= ~EXT2_VALID_FS; in ext2fs_flush2()
319 fs->super->s_feature_incompat &= ~EXT3_FEATURE_INCOMPAT_RECOVER; in ext2fs_flush2()
321 *super_shadow = *fs->super; in ext2fs_flush2()
329 if (fs->super->s_feature_incompat & in ext2fs_flush2()
338 if (fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) in ext2fs_flush2()
339 old_desc_blocks = fs->super->s_first_meta_bg; in ext2fs_flush2()
370 int meta_bg = i / EXT2_DESC_PER_BLOCK(fs->super); in ext2fs_flush2()
402 fs->super->s_block_group_nr = 0; in ext2fs_flush2()
403 fs->super->s_state = fs_state; in ext2fs_flush2()
404 fs->super->s_feature_incompat = feature_incompat; in ext2fs_flush2()
406 *super_shadow = *fs->super; in ext2fs_flush2()
421 fs->super->s_state = fs_state; in ext2fs_flush2()
449 if (fs->super->s_kbytes_written && in ext2fs_close2()
453 fs->super->s_kbytes_written += stats->bytes_written >> 10; in ext2fs_close2()
456 fs->super->s_kbytes_written += meta_blks / in ext2fs_close2()