Lines Matching refs:input
116 struct ext4_new_group_data *input) in verify_group_input() argument
121 ext4_fsblk_t end = start + input->blocks_count; in verify_group_input()
122 ext4_group_t group = input->group; in verify_group_input()
123 ext4_fsblk_t itend = input->inode_table + sbi->s_itb_per_group; in verify_group_input()
132 input->group, sbi->s_groups_count); in verify_group_input()
138 input->free_blocks_count = free_blocks_count = in verify_group_input()
139 input->blocks_count - 2 - overhead - sbi->s_itb_per_group; in verify_group_input()
144 ext4_bg_has_super(sb, input->group) ? "normal" : in verify_group_input()
145 "no-super", input->group, input->blocks_count, in verify_group_input()
146 free_blocks_count, input->reserved_blocks); in verify_group_input()
151 else if (input->reserved_blocks > input->blocks_count / 5) in verify_group_input()
153 input->reserved_blocks); in verify_group_input()
156 input->blocks_count); in verify_group_input()
162 } else if (outside(input->block_bitmap, start, end)) in verify_group_input()
164 (unsigned long long)input->block_bitmap); in verify_group_input()
165 else if (outside(input->inode_bitmap, start, end)) in verify_group_input()
167 (unsigned long long)input->inode_bitmap); in verify_group_input()
168 else if (outside(input->inode_table, start, end) || in verify_group_input()
171 (unsigned long long)input->inode_table, itend - 1); in verify_group_input()
172 else if (input->inode_bitmap == input->block_bitmap) in verify_group_input()
174 (unsigned long long)input->block_bitmap); in verify_group_input()
175 else if (inside(input->block_bitmap, input->inode_table, itend)) in verify_group_input()
178 (unsigned long long)input->block_bitmap, in verify_group_input()
179 (unsigned long long)input->inode_table, itend - 1); in verify_group_input()
180 else if (inside(input->inode_bitmap, input->inode_table, itend)) in verify_group_input()
183 (unsigned long long)input->inode_bitmap, in verify_group_input()
184 (unsigned long long)input->inode_table, itend - 1); in verify_group_input()
185 else if (inside(input->block_bitmap, start, metaend)) in verify_group_input()
187 (unsigned long long)input->block_bitmap, in verify_group_input()
189 else if (inside(input->inode_bitmap, start, metaend)) in verify_group_input()
191 (unsigned long long)input->inode_bitmap, in verify_group_input()
193 else if (inside(input->inode_table, start, metaend) || in verify_group_input()
197 (unsigned long long)input->inode_table, in verify_group_input()
1617 int ext4_group_add(struct super_block *sb, struct ext4_new_group_data *input) in ext4_group_add() argument
1622 int reserved_gdb = ext4_bg_has_super(sb, input->group) ? in ext4_group_add()
1629 gdb_off = input->group % EXT4_DESC_PER_BLOCK(sb); in ext4_group_add()
1636 if (ext4_blocks_count(es) + input->blocks_count < in ext4_group_add()
1663 err = verify_group_input(sb, input); in ext4_group_add()
1667 err = ext4_alloc_flex_bg_array(sb, input->group + 1); in ext4_group_add()
1671 err = ext4_mb_alloc_groupinfo(sb, input->group + 1); in ext4_group_add()
1676 flex_gd.groups = input; in ext4_group_add()