Lines Matching refs:super

42 	if (!(fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) ||  in ext2fs_descriptor_block_loc2()
43 (i < fs->super->s_first_meta_bg)) in ext2fs_descriptor_block_loc2()
46 bg = EXT2_DESC_PER_BLOCK(fs->super) * i; in ext2fs_descriptor_block_loc2()
58 if (group_block != fs->super->s_first_data_block && in ext2fs_descriptor_block_loc2()
59 ((ret_blk + fs->super->s_blocks_per_group) < in ext2fs_descriptor_block_loc2()
60 ext2fs_blocks_count(fs->super))) in ext2fs_descriptor_block_loc2()
61 ret_blk += fs->super->s_blocks_per_group; in ext2fs_descriptor_block_loc2()
147 retval = io_channel_alloc_buf(fs->io, -SUPERBLOCK_SIZE, &fs->super); in ext2fs_open2()
192 fs->super); in ext2fs_open2()
196 memcpy(fs->orig_super, fs->super, SUPERBLOCK_SIZE); in ext2fs_open2()
200 ext2fs_swap_super(fs->super); in ext2fs_open2()
208 if (fs->super->s_magic != EXT2_SUPER_MAGIC) { in ext2fs_open2()
212 if (fs->super->s_rev_level > EXT2_LIB_CURRENT_REV) { in ext2fs_open2()
221 features = fs->super->s_feature_incompat; in ext2fs_open2()
231 features = fs->super->s_feature_ro_compat; in ext2fs_open2()
243 (fs->super->s_feature_incompat & in ext2fs_open2()
250 if ((fs->super->s_log_block_size + EXT2_MIN_BLOCK_LOG_SIZE) > in ext2fs_open2()
260 if (EXT2_HAS_RO_COMPAT_FEATURE(fs->super, in ext2fs_open2()
267 if (!EXT2_HAS_RO_COMPAT_FEATURE(fs->super, in ext2fs_open2()
269 (fs->super->s_log_block_size != fs->super->s_log_cluster_size)) { in ext2fs_open2()
273 fs->fragsize = fs->blocksize = EXT2_BLOCK_SIZE(fs->super); in ext2fs_open2()
274 if (EXT2_INODE_SIZE(fs->super) < EXT2_GOOD_OLD_INODE_SIZE) { in ext2fs_open2()
278 fs->cluster_ratio_bits = fs->super->s_log_cluster_size - in ext2fs_open2()
279 fs->super->s_log_block_size; in ext2fs_open2()
280 if (EXT2_BLOCKS_PER_GROUP(fs->super) != in ext2fs_open2()
281 EXT2_CLUSTERS_PER_GROUP(fs->super) << fs->cluster_ratio_bits) { in ext2fs_open2()
285 fs->inode_blocks_per_group = ((EXT2_INODES_PER_GROUP(fs->super) * in ext2fs_open2()
286 EXT2_INODE_SIZE(fs->super) + in ext2fs_open2()
287 EXT2_BLOCK_SIZE(fs->super) - 1) / in ext2fs_open2()
288 EXT2_BLOCK_SIZE(fs->super)); in ext2fs_open2()
304 if (fs->super->s_feature_incompat & in ext2fs_open2()
311 if (EXT2_INODES_PER_GROUP(fs->super) == 0) { in ext2fs_open2()
319 blocks_per_group = EXT2_BLOCKS_PER_GROUP(fs->super); in ext2fs_open2()
321 blocks_per_group > EXT2_MAX_BLOCKS_PER_GROUP(fs->super) || in ext2fs_open2()
322 fs->inode_blocks_per_group > EXT2_MAX_INODES_PER_GROUP(fs->super) || in ext2fs_open2()
323 EXT2_DESC_PER_BLOCK(fs->super) == 0 || in ext2fs_open2()
324 fs->super->s_first_data_block >= ext2fs_blocks_count(fs->super)) { in ext2fs_open2()
328 fs->group_desc_count = ext2fs_div64_ceil(ext2fs_blocks_count(fs->super) - in ext2fs_open2()
329 fs->super->s_first_data_block, in ext2fs_open2()
331 if (fs->group_desc_count * EXT2_INODES_PER_GROUP(fs->super) != in ext2fs_open2()
332 fs->super->s_inodes_count) { in ext2fs_open2()
337 EXT2_DESC_PER_BLOCK(fs->super)); in ext2fs_open2()
343 group_block = fs->super->s_first_data_block; in ext2fs_open2()
348 groups_per_block = EXT2_DESC_PER_BLOCK(fs->super); in ext2fs_open2()
350 if (fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG) in ext2fs_open2()
351 first_meta_bg = fs->super->s_first_meta_bg; in ext2fs_open2()
383 fs->stride = fs->super->s_raid_stride; in ext2fs_open2()
389 if (superblock > 1 && EXT2_HAS_RO_COMPAT_FEATURE(fs->super, in ext2fs_open2()
405 if ((fs->super->s_feature_incompat & EXT4_FEATURE_INCOMPAT_MMP) && in ext2fs_open2()