• Home
  • Raw
  • Download

Lines Matching refs:group

89 					     ext4_group_t group) {  in ext4_meta_bg_first_group()  argument
90 return (group >> EXT4_DESC_PER_BLOCK_BITS(sb)) << in ext4_meta_bg_first_group()
95 ext4_group_t group) { in ext4_meta_bg_first_block_no() argument
96 group = ext4_meta_bg_first_group(sb, group); in ext4_meta_bg_first_block_no()
97 return ext4_group_first_block_no(sb, group); in ext4_meta_bg_first_block_no()
101 ext4_group_t group) { in ext4_group_overhead_blocks() argument
103 overhead = ext4_bg_num_gdb(sb, group); in ext4_group_overhead_blocks()
104 if (ext4_bg_has_super(sb, group)) in ext4_group_overhead_blocks()
120 ext4_group_t group = input->group; in verify_group_input() local
128 if (group != sbi->s_groups_count) { in verify_group_input()
130 input->group, sbi->s_groups_count); in verify_group_input()
134 overhead = ext4_group_overhead_blocks(sb, group); in verify_group_input()
142 ext4_bg_has_super(sb, input->group) ? "normal" : in verify_group_input()
143 "no-super", input->group, input->blocks_count, in verify_group_input()
283 ext4_group_t group; in ext4_alloc_group_tables() local
290 src_group = group_data[0].group; in ext4_alloc_group_tables()
296 group = group_data[0].group; in ext4_alloc_group_tables()
297 if (src_group >= group_data[0].group + flex_gd->count) in ext4_alloc_group_tables()
300 last_blk = start_blk + group_data[src_group - group].blocks_count; in ext4_alloc_group_tables()
311 last_blk += group_data[src_group - group].blocks_count; in ext4_alloc_group_tables()
321 group = ext4_get_group_number(sb, start_blk - 1); in ext4_alloc_group_tables()
322 group -= group_data[0].group; in ext4_alloc_group_tables()
323 group_data[group].free_blocks_count--; in ext4_alloc_group_tables()
324 flex_gd->bg_flags[group] &= uninit_mask; in ext4_alloc_group_tables()
332 group = ext4_get_group_number(sb, start_blk - 1); in ext4_alloc_group_tables()
333 group -= group_data[0].group; in ext4_alloc_group_tables()
334 group_data[group].free_blocks_count--; in ext4_alloc_group_tables()
335 flex_gd->bg_flags[group] &= uninit_mask; in ext4_alloc_group_tables()
346 group = ext4_get_group_number(sb, start_blk); in ext4_alloc_group_tables()
347 next_group_start = ext4_group_first_block_no(sb, group + 1); in ext4_alloc_group_tables()
348 group -= group_data[0].group; in ext4_alloc_group_tables()
351 flex_gd->bg_flags[group + 1] &= uninit_mask; in ext4_alloc_group_tables()
353 group_data[group + 1].free_blocks_count -= overhead; in ext4_alloc_group_tables()
357 group_data[group].free_blocks_count -= itb; in ext4_alloc_group_tables()
358 flex_gd->bg_flags[group] &= uninit_mask; in ext4_alloc_group_tables()
364 group = group_data[0].group; in ext4_alloc_group_tables()
373 ext4_bg_has_super(sb, group + i) ? "normal" : in ext4_alloc_group_tables()
374 "no-super", group + i, in ext4_alloc_group_tables()
446 ext4_group_t group; in set_flexbg_block_bitmap() local
449 group = ext4_get_group_number(sb, block); in set_flexbg_block_bitmap()
450 start = ext4_group_first_block_no(sb, group); in set_flexbg_block_bitmap()
451 group -= flex_gd->groups[0].group; in set_flexbg_block_bitmap()
457 if (flex_gd->bg_flags[group] & EXT4_BG_BLOCK_UNINIT) { in set_flexbg_block_bitmap()
466 bh = sb_getblk(sb, flex_gd->groups[group].block_bitmap); in set_flexbg_block_bitmap()
514 ext4_group_t group, count; in setup_new_flex_group_blocks() local
520 group_data[0].group != sbi->s_groups_count); in setup_new_flex_group_blocks()
530 group = group_data[0].group; in setup_new_flex_group_blocks()
531 for (i = 0; i < flex_gd->count; i++, group++) { in setup_new_flex_group_blocks()
535 gdblocks = ext4_bg_num_gdb(sb, group); in setup_new_flex_group_blocks()
536 start = ext4_group_first_block_no(sb, group); in setup_new_flex_group_blocks()
538 if (meta_bg == 0 && !ext4_bg_has_super(sb, group)) in setup_new_flex_group_blocks()
543 first_group = ext4_meta_bg_first_group(sb, group); in setup_new_flex_group_blocks()
544 if (first_group != group + 1 && in setup_new_flex_group_blocks()
545 first_group != group + EXT4_DESC_PER_BLOCK(sb) - 1) in setup_new_flex_group_blocks()
549 block = start + ext4_bg_has_super(sb, group); in setup_new_flex_group_blocks()
586 if (ext4_bg_has_super(sb, group)) { in setup_new_flex_group_blocks()
622 overhead = ext4_group_overhead_blocks(sb, group); in setup_new_flex_group_blocks()
779 ext4_group_t group) in add_new_gdb() argument
783 unsigned long gdb_num = group / EXT4_DESC_PER_BLOCK(sb); in add_new_gdb()
802 gdbackups = verify_reserved_gdb(sb, group, gdb_bh); in add_new_gdb()
818 group, gdblock); in add_new_gdb()
912 handle_t *handle, ext4_group_t group) { in add_new_gdb_meta_bg() argument
916 unsigned long gdb_num = group / EXT4_DESC_PER_BLOCK(sb); in add_new_gdb_meta_bg()
919 gdblock = ext4_meta_bg_first_block_no(sb, group) + in add_new_gdb_meta_bg()
920 ext4_bg_has_super(sb, group); in add_new_gdb_meta_bg()
970 ext4_group_t group) in reserve_backup_gdb() argument
1014 gdbackups = verify_reserved_gdb(sb, group, primary[res]); in reserve_backup_gdb()
1037 blk = group * EXT4_BLOCKS_PER_GROUP(sb); in reserve_backup_gdb()
1088 ext4_group_t group = 0; in update_backups() local
1095 group = 1; in update_backups()
1101 group = ext4_list_backups(sb, &three, &five, &seven); in update_backups()
1104 group = ext4_get_group_number(sb, blk_off) + 1; in update_backups()
1105 last = (ext4_group_t)(group + EXT4_DESC_PER_BLOCK(sb) - 2); in update_backups()
1108 while (group < sbi->s_groups_count) { in update_backups()
1120 backup_block = ((ext4_fsblk_t)group) * bpg + blk_off; in update_backups()
1122 backup_block = (ext4_group_first_block_no(sb, group) + in update_backups()
1123 ext4_bg_has_super(sb, group)); in update_backups()
1132 ext4_group_first_block_no(sb, group)); in update_backups()
1150 group = ext4_list_backups(sb, &three, &five, &seven); in update_backups()
1151 else if (group == last) in update_backups()
1154 group = last; in update_backups()
1172 "forcing fsck on next reboot", group, err); in update_backups()
1190 ext4_group_t group, struct inode *resize_inode, in ext4_add_new_descs() argument
1200 for (i = 0; i < count; i++, group++) { in ext4_add_new_descs()
1201 int reserved_gdb = ext4_bg_has_super(sb, group) ? in ext4_add_new_descs()
1204 gdb_off = group % EXT4_DESC_PER_BLOCK(sb); in ext4_add_new_descs()
1205 gdb_num = group / EXT4_DESC_PER_BLOCK(sb); in ext4_add_new_descs()
1219 if (!err && reserved_gdb && ext4_bg_num_gdb(sb, group)) in ext4_add_new_descs()
1220 err = reserve_backup_gdb(handle, resize_inode, group); in ext4_add_new_descs()
1222 err = add_new_gdb_meta_bg(sb, handle, group); in ext4_add_new_descs()
1224 err = add_new_gdb(handle, resize_inode, group); in ext4_add_new_descs()
1248 ext4_group_t group, in ext4_set_bitmap_checksums() argument
1260 ext4_inode_bitmap_csum_set(sb, group, gdp, bh, in ext4_set_bitmap_checksums()
1267 ext4_block_bitmap_csum_set(sb, group, gdp, bh); in ext4_set_bitmap_checksums()
1283 ext4_group_t group; in ext4_setup_new_descs() local
1289 group = group_data->group; in ext4_setup_new_descs()
1291 gdb_off = group % EXT4_DESC_PER_BLOCK(sb); in ext4_setup_new_descs()
1292 gdb_num = group / EXT4_DESC_PER_BLOCK(sb); in ext4_setup_new_descs()
1305 err = ext4_set_bitmap_checksums(sb, group, gdp, group_data); in ext4_setup_new_descs()
1319 ext4_group_desc_csum_set(sb, group, gdp); in ext4_setup_new_descs()
1331 err = ext4_mb_add_groupinfo(sb, group, gdp); in ext4_setup_new_descs()
1427 flex_group = ext4_flex_group(sbi, group_data[0].group); in ext4_update_super()
1458 ext4_group_t group; in ext4_flex_group_add() local
1467 ext4_get_group_no_and_offset(sb, o_blocks_count, &group, &last); in ext4_flex_group_add()
1495 group = flex_gd->groups[0].group; in ext4_flex_group_add()
1496 BUG_ON(group != EXT4_SB(sb)->s_groups_count); in ext4_flex_group_add()
1497 err = ext4_add_new_descs(handle, sb, group, in ext4_flex_group_add()
1516 int gdb_num = group / EXT4_DESC_PER_BLOCK(sb); in ext4_flex_group_add()
1517 int gdb_num_end = ((group + flex_gd->count - 1) / in ext4_flex_group_add()
1549 ext4_group_t group; in ext4_setup_next_flex_gd() local
1562 ext4_get_group_no_and_offset(sb, o_blocks_count, &group, &last); in ext4_setup_next_flex_gd()
1566 last_group = group | (flexbg_size - 1); in ext4_setup_next_flex_gd()
1570 flex_gd->count = last_group - group + 1; in ext4_setup_next_flex_gd()
1575 group_data[i].group = group + i; in ext4_setup_next_flex_gd()
1577 overhead = ext4_group_overhead_blocks(sb, group + i); in ext4_setup_next_flex_gd()
1619 int reserved_gdb = ext4_bg_has_super(sb, input->group) ? in ext4_group_add()
1626 gdb_off = input->group % EXT4_DESC_PER_BLOCK(sb); in ext4_group_add()
1664 err = ext4_alloc_flex_bg_array(sb, input->group + 1); in ext4_group_add()
1668 err = ext4_mb_alloc_groupinfo(sb, input->group + 1); in ext4_group_add()
1752 ext4_group_t group; in ext4_group_extend() local
1779 ext4_get_group_no_and_offset(sb, o_blocks_count, &group, &last); in ext4_group_extend()