Lines Matching refs:group
58 ext4_group_t group = input->group; in verify_group_input() local
60 unsigned overhead = ext4_bg_has_super(sb, group) ? in verify_group_input()
61 (1 + ext4_bg_num_gdb(sb, group) + in verify_group_input()
74 ext4_bg_has_super(sb, input->group) ? "normal" : in verify_group_input()
75 "no-super", input->group, input->blocks_count, in verify_group_input()
79 if (group != sbi->s_groups_count) in verify_group_input()
81 input->group, sbi->s_groups_count); in verify_group_input()
219 ext4_group_t group; in ext4_alloc_group_tables() local
225 src_group = group_data[0].group; in ext4_alloc_group_tables()
231 group = group_data[0].group; in ext4_alloc_group_tables()
232 if (src_group >= group_data[0].group + flex_gd->count) in ext4_alloc_group_tables()
235 last_blk = start_blk + group_data[src_group - group].blocks_count; in ext4_alloc_group_tables()
247 last_blk += group_data[src_group - group].blocks_count; in ext4_alloc_group_tables()
256 ext4_get_group_no_and_offset(sb, start_blk - 1, &group, NULL); in ext4_alloc_group_tables()
257 group -= group_data[0].group; in ext4_alloc_group_tables()
258 group_data[group].free_blocks_count--; in ext4_alloc_group_tables()
260 flex_gd->bg_flags[group] &= ~EXT4_BG_BLOCK_UNINIT; in ext4_alloc_group_tables()
268 ext4_get_group_no_and_offset(sb, start_blk - 1, &group, NULL); in ext4_alloc_group_tables()
269 group -= group_data[0].group; in ext4_alloc_group_tables()
270 group_data[group].free_blocks_count--; in ext4_alloc_group_tables()
272 flex_gd->bg_flags[group] &= ~EXT4_BG_BLOCK_UNINIT; in ext4_alloc_group_tables()
280 ext4_get_group_no_and_offset(sb, start_blk, &group, NULL); in ext4_alloc_group_tables()
281 group -= group_data[0].group; in ext4_alloc_group_tables()
282 group_data[group].free_blocks_count -= in ext4_alloc_group_tables()
285 flex_gd->bg_flags[group] &= ~EXT4_BG_BLOCK_UNINIT; in ext4_alloc_group_tables()
292 group = group_data[0].group; in ext4_alloc_group_tables()
301 ext4_bg_has_super(sb, group + i) ? "normal" : in ext4_alloc_group_tables()
302 "no-super", group + i, in ext4_alloc_group_tables()
373 ext4_group_t group; in set_flexbg_block_bitmap() local
376 ext4_get_group_no_and_offset(sb, block, &group, NULL); in set_flexbg_block_bitmap()
377 start = ext4_group_first_block_no(sb, group); in set_flexbg_block_bitmap()
378 group -= flex_gd->groups[0].group; in set_flexbg_block_bitmap()
384 if (flex_gd->bg_flags[group] & EXT4_BG_BLOCK_UNINIT) { in set_flexbg_block_bitmap()
393 bh = sb_getblk(sb, flex_gd->groups[group].block_bitmap); in set_flexbg_block_bitmap()
438 ext4_group_t group, count; in setup_new_flex_group_blocks() local
443 group_data[0].group != sbi->s_groups_count); in setup_new_flex_group_blocks()
452 group = group_data[0].group; in setup_new_flex_group_blocks()
453 for (i = 0; i < flex_gd->count; i++, group++) { in setup_new_flex_group_blocks()
456 gdblocks = ext4_bg_num_gdb(sb, group); in setup_new_flex_group_blocks()
457 start = ext4_group_first_block_no(sb, group); in setup_new_flex_group_blocks()
459 if (!ext4_bg_has_super(sb, group)) in setup_new_flex_group_blocks()
497 if (ext4_bg_has_super(sb, group)) { in setup_new_flex_group_blocks()
533 if (ext4_bg_has_super(sb, group)) { in setup_new_flex_group_blocks()
693 ext4_group_t group) in add_new_gdb() argument
697 unsigned long gdb_num = group / EXT4_DESC_PER_BLOCK(sb); in add_new_gdb()
728 gdbackups = verify_reserved_gdb(sb, group, gdb_bh); in add_new_gdb()
744 group, gdblock); in add_new_gdb()
847 ext4_group_t group) in reserve_backup_gdb() argument
891 gdbackups = verify_reserved_gdb(sb, group, primary[res]); in reserve_backup_gdb()
919 blk = group * EXT4_BLOCKS_PER_GROUP(sb); in reserve_backup_gdb()
970 ext4_group_t group; in update_backups() local
977 group = 1; in update_backups()
982 while ((group = ext4_list_backups(sb, &three, &five, &seven)) < last) { in update_backups()
992 bh = sb_getblk(sb, group * bpg + blk_off); in update_backups()
1028 "forcing fsck on next reboot", group, err); in update_backups()
1046 ext4_group_t group, struct inode *resize_inode, in ext4_add_new_descs() argument
1054 for (i = 0; i < count; i++, group++) { in ext4_add_new_descs()
1055 int reserved_gdb = ext4_bg_has_super(sb, group) ? in ext4_add_new_descs()
1058 gdb_off = group % EXT4_DESC_PER_BLOCK(sb); in ext4_add_new_descs()
1059 gdb_num = group / EXT4_DESC_PER_BLOCK(sb); in ext4_add_new_descs()
1071 if (!err && reserved_gdb && ext4_bg_num_gdb(sb, group)) in ext4_add_new_descs()
1072 err = reserve_backup_gdb(handle, resize_inode, group); in ext4_add_new_descs()
1074 err = add_new_gdb(handle, resize_inode, group); in ext4_add_new_descs()
1091 ext4_group_t group; in ext4_setup_new_descs() local
1097 group = group_data->group; in ext4_setup_new_descs()
1099 gdb_off = group % EXT4_DESC_PER_BLOCK(sb); in ext4_setup_new_descs()
1100 gdb_num = group / EXT4_DESC_PER_BLOCK(sb); in ext4_setup_new_descs()
1118 gdp->bg_checksum = ext4_group_desc_csum(sbi, group, gdp); in ext4_setup_new_descs()
1130 err = ext4_mb_add_groupinfo(sb, group, gdp); in ext4_setup_new_descs()
1223 flex_group = ext4_flex_group(sbi, group_data[0].group); in ext4_update_super()
1253 ext4_group_t group; in ext4_flex_group_add() local
1262 ext4_get_group_no_and_offset(sb, o_blocks_count, &group, &last); in ext4_flex_group_add()
1286 group = flex_gd->groups[0].group; in ext4_flex_group_add()
1287 BUG_ON(group != EXT4_SB(sb)->s_groups_count); in ext4_flex_group_add()
1288 err = ext4_add_new_descs(handle, sb, group, in ext4_flex_group_add()
1307 int gdb_num = group / EXT4_DESC_PER_BLOCK(sb); in ext4_flex_group_add()
1308 int gdb_num_end = ((group + flex_gd->count - 1) / in ext4_flex_group_add()
1334 ext4_group_t group; in ext4_setup_next_flex_gd() local
1347 ext4_get_group_no_and_offset(sb, o_blocks_count, &group, &last); in ext4_setup_next_flex_gd()
1351 last_group = group | (flexbg_size - 1); in ext4_setup_next_flex_gd()
1355 flex_gd->count = last_group - group + 1; in ext4_setup_next_flex_gd()
1360 group_data[i].group = group + i; in ext4_setup_next_flex_gd()
1362 overhead = ext4_bg_has_super(sb, group + i) ? in ext4_setup_next_flex_gd()
1363 (1 + ext4_bg_num_gdb(sb, group + i) + in ext4_setup_next_flex_gd()
1407 int reserved_gdb = ext4_bg_has_super(sb, input->group) ? in ext4_group_add()
1414 gdb_num = input->group / EXT4_DESC_PER_BLOCK(sb); in ext4_group_add()
1415 gdb_off = input->group % EXT4_DESC_PER_BLOCK(sb); in ext4_group_add()
1534 ext4_group_t group; in ext4_group_extend() local
1561 ext4_get_group_no_and_offset(sb, o_blocks_count, &group, &last); in ext4_group_extend()