• Home
  • Raw
  • Download

Lines Matching refs:super

49 	if (!ext2fs_has_feature_meta_bg(fs->super) ||  in ext2fs_descriptor_block_loc2()
50 (i < fs->super->s_first_meta_bg)) in ext2fs_descriptor_block_loc2()
53 bg = EXT2_DESC_PER_BLOCK(fs->super) * i; in ext2fs_descriptor_block_loc2()
65 if (group_block != fs->super->s_first_data_block && in ext2fs_descriptor_block_loc2()
66 ((ret_blk + has_super + fs->super->s_blocks_per_group) < in ext2fs_descriptor_block_loc2()
67 ext2fs_blocks_count(fs->super))) { in ext2fs_descriptor_block_loc2()
68 ret_blk += fs->super->s_blocks_per_group; in ext2fs_descriptor_block_loc2()
180 retval = io_channel_alloc_buf(fs->io, -SUPERBLOCK_SIZE, &fs->super); in ext2fs_open2()
225 fs->super); in ext2fs_open2()
229 memcpy(fs->orig_super, fs->super, SUPERBLOCK_SIZE); in ext2fs_open2()
233 if (!ext2fs_verify_csum_type(fs, fs->super)) in ext2fs_open2()
235 if (!ext2fs_superblock_csum_verify(fs, fs->super)) in ext2fs_open2()
241 ext2fs_swap_super(fs->super); in ext2fs_open2()
249 if (fs->super->s_magic != EXT2_SUPER_MAGIC) in ext2fs_open2()
254 if (fs->super->s_rev_level > EXT2_LIB_CURRENT_REV) { in ext2fs_open2()
263 features = fs->super->s_feature_incompat; in ext2fs_open2()
273 features = fs->super->s_feature_ro_compat; in ext2fs_open2()
285 ext2fs_has_feature_journal_dev(fs->super)) { in ext2fs_open2()
291 if (fs->super->s_log_block_size > in ext2fs_open2()
301 if (ext2fs_has_feature_bigalloc(fs->super) && in ext2fs_open2()
307 if (!ext2fs_has_feature_bigalloc(fs->super) && in ext2fs_open2()
308 (fs->super->s_log_block_size != fs->super->s_log_cluster_size)) { in ext2fs_open2()
312 fs->fragsize = fs->blocksize = EXT2_BLOCK_SIZE(fs->super); in ext2fs_open2()
313 inode_size = EXT2_INODE_SIZE(fs->super); in ext2fs_open2()
322 if (ext2fs_has_feature_64bit(fs->super)) { in ext2fs_open2()
323 if (fs->super->s_desc_size < EXT2_MIN_DESC_SIZE_64BIT) { in ext2fs_open2()
329 fs->cluster_ratio_bits = fs->super->s_log_cluster_size - in ext2fs_open2()
330 fs->super->s_log_block_size; in ext2fs_open2()
331 if (EXT2_BLOCKS_PER_GROUP(fs->super) != in ext2fs_open2()
332 EXT2_CLUSTERS_PER_GROUP(fs->super) << fs->cluster_ratio_bits) { in ext2fs_open2()
336 fs->inode_blocks_per_group = ((EXT2_INODES_PER_GROUP(fs->super) * in ext2fs_open2()
337 EXT2_INODE_SIZE(fs->super) + in ext2fs_open2()
338 EXT2_BLOCK_SIZE(fs->super) - 1) / in ext2fs_open2()
339 EXT2_BLOCK_SIZE(fs->super)); in ext2fs_open2()
355 if (ext2fs_has_feature_journal_dev(fs->super)) { in ext2fs_open2()
361 if (EXT2_INODES_PER_GROUP(fs->super) == 0) { in ext2fs_open2()
371 blocks_per_group = EXT2_BLOCKS_PER_GROUP(fs->super); in ext2fs_open2()
373 blocks_per_group > EXT2_MAX_BLOCKS_PER_GROUP(fs->super) || in ext2fs_open2()
374 fs->inode_blocks_per_group > EXT2_MAX_INODES_PER_GROUP(fs->super) || in ext2fs_open2()
375 EXT2_DESC_PER_BLOCK(fs->super) == 0 || in ext2fs_open2()
376 fs->super->s_first_data_block >= ext2fs_blocks_count(fs->super)) { in ext2fs_open2()
380 groups_cnt = ext2fs_div64_ceil(ext2fs_blocks_count(fs->super) - in ext2fs_open2()
381 fs->super->s_first_data_block, in ext2fs_open2()
389 (__u64)fs->group_desc_count * EXT2_INODES_PER_GROUP(fs->super) != in ext2fs_open2()
390 fs->super->s_inodes_count) { in ext2fs_open2()
395 EXT2_DESC_PER_BLOCK(fs->super)); in ext2fs_open2()
401 group_block = fs->super->s_first_data_block; in ext2fs_open2()
417 groups_per_block = EXT2_DESC_PER_BLOCK(fs->super); in ext2fs_open2()
419 if (ext2fs_has_feature_meta_bg(fs->super) && in ext2fs_open2()
421 first_meta_bg = fs->super->s_first_meta_bg; in ext2fs_open2()
462 fs->stride = fs->super->s_raid_stride; in ext2fs_open2()
483 if (ext2fs_has_feature_mmp(fs->super) && in ext2fs_open2()
501 ext2fs_set_feature_shared_blocks(fs->super); in ext2fs_open2()
504 if (ext2fs_has_feature_casefold(fs->super)) in ext2fs_open2()
505 fs->encoding = ext2fs_load_nls_table(fs->super->s_encoding); in ext2fs_open2()