Searched refs:ext2_sb (Results 1 – 8 of 8) sorted by relevance
43 sb->u.ext2_sb.s_mount_state |= EXT2_ERROR_FS; in ext2_error()52 (le16_to_cpu(sb->u.ext2_sb.s_es->s_errors) == EXT2_ERRORS_PANIC && in ext2_error()59 (le16_to_cpu(sb->u.ext2_sb.s_es->s_errors) == EXT2_ERRORS_RO && in ext2_error()72 sb->u.ext2_sb.s_mount_state |= EXT2_ERROR_FS; in ext2_panic()73 sb->u.ext2_sb.s_es->s_state = in ext2_panic()74 cpu_to_le16(le16_to_cpu(sb->u.ext2_sb.s_es->s_state) | EXT2_ERROR_FS); in ext2_panic()75 mark_buffer_dirty(sb->u.ext2_sb.s_sbh); in ext2_panic()136 if (sb->u.ext2_sb.s_group_desc[i]) in ext2_put_super()137 brelse (sb->u.ext2_sb.s_group_desc[i]); in ext2_put_super()138 kfree(sb->u.ext2_sb.s_group_desc); in ext2_put_super()[all …]
46 if (block_group >= sb->u.ext2_sb.s_groups_count) { in ext2_get_group_desc()50 block_group, sb->u.ext2_sb.s_groups_count); in ext2_get_group_desc()57 if (!sb->u.ext2_sb.s_group_desc[group_desc]) { in ext2_get_group_desc()66 sb->u.ext2_sb.s_group_desc[group_desc]->b_data; in ext2_get_group_desc()68 *bh = sb->u.ext2_sb.s_group_desc[group_desc]; in ext2_get_group_desc()104 sb->u.ext2_sb.s_block_bitmap_number[bitmap_nr] = block_group; in read_block_bitmap()105 sb->u.ext2_sb.s_block_bitmap[bitmap_nr] = bh; in read_block_bitmap()129 if (block_group >= sb->u.ext2_sb.s_groups_count) in __load_block_bitmap()133 block_group, sb->u.ext2_sb.s_groups_count); in __load_block_bitmap()135 if (sb->u.ext2_sb.s_groups_count <= EXT2_MAX_GROUP_LOADED) { in __load_block_bitmap()[all …]
81 struct ext2_sb_info *sbi = &sb->u.ext2_sb; in load_inode_bitmap()175 es = sb->u.ext2_sb.s_es; in ext2_free_inode()209 mark_buffer_dirty(sb->u.ext2_sb.s_sbh); in ext2_free_inode()234 struct ext2_super_block * es = sb->u.ext2_sb.s_es; in find_group_dir()235 int ngroups = sb->u.ext2_sb.s_groups_count; in find_group_dir()267 int ngroups = sb->u.ext2_sb.s_groups_count; in find_group_other()332 es = sb->u.ext2_sb.s_es; in ext2_new_inode()371 mark_buffer_dirty(sb->u.ext2_sb.s_sbh); in ext2_new_inode()446 es = sb->u.ext2_sb.s_es; in ext2_count_free_inodes()447 for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { in ext2_count_free_inodes()[all …]
319 le32_to_cpu(inode->i_sb->u.ext2_sb.s_es->s_first_data_block); in ext2_find_near()923 inode->i_ino > le32_to_cpu(inode->i_sb->u.ext2_sb.s_es->s_inodes_count)) { in ext2_read_inode()929 if (block_group >= inode->i_sb->u.ext2_sb.s_groups_count) { in ext2_read_inode()936 bh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc]; in ext2_read_inode()1052 inode->i_ino > le32_to_cpu(inode->i_sb->u.ext2_sb.s_es->s_inodes_count)) { in ext2_update_inode()1058 if (block_group >= inode->i_sb->u.ext2_sb.s_groups_count) { in ext2_update_inode()1065 bh = inode->i_sb->u.ext2_sb.s_group_desc[group_desc]; in ext2_update_inode()
72 u32 max_inumber = le32_to_cpu(sb->u.ext2_sb.s_es->s_inodes_count); in ext2_check_page()
97 #define EXT2_ADDR_PER_BLOCK_BITS(s) ((s)->u.ext2_sb.s_addr_per_block_bits)98 #define EXT2_INODE_SIZE(s) ((s)->u.ext2_sb.s_inode_size)99 #define EXT2_FIRST_INO(s) ((s)->u.ext2_sb.s_first_ino)116 # define EXT2_FRAG_SIZE(s) ((s)->u.ext2_sb.s_frag_size)117 # define EXT2_FRAGS_PER_BLOCK(s) ((s)->u.ext2_sb.s_frags_per_block)164 # define EXT2_BLOCKS_PER_GROUP(s) ((s)->u.ext2_sb.s_blocks_per_group)165 # define EXT2_DESC_PER_BLOCK(s) ((s)->u.ext2_sb.s_desc_per_block)166 # define EXT2_INODES_PER_GROUP(s) ((s)->u.ext2_sb.s_inodes_per_group)167 # define EXT2_DESC_PER_BLOCK_BITS(s) ((s)->u.ext2_sb.s_desc_per_block_bits)320 #define test_opt(sb, opt) ((sb)->u.ext2_sb.s_mount_opt & \[all …]
774 struct ext2_sb_info ext2_sb; member
45 unsigned long freebl = le32_to_cpu(sb->u.ext2_sb.s_es->s_free_blocks_count); in presto_e2_freespace()46 unsigned long avail = freebl - le32_to_cpu(sb->u.ext2_sb.s_es->s_r_blocks_count); in presto_e2_freespace()59 avail_kmlblocks = inode->i_sb->u.ext2_sb.s_es->s_free_blocks_count; in presto_e2_trans_start()