Home
last modified time | relevance | path

Searched refs:group_desc_count (Results 1 – 25 of 36) sorted by relevance

12

/third_party/e2fsprogs/resize/
Dresize2fs.c166 ext2fs_bg_flags_clear(rfs->new_fs, rfs->new_fs->group_desc_count - 1, in resize_fs()
316 rfs->old_fs->group_desc_count, in resize_group_descriptors()
330 for (i = 0; i < rfs->old_fs->group_desc_count; i++) { in resize_group_descriptors()
339 for (i = 0; i < rfs->old_fs->group_desc_count; i++) in resize_group_descriptors()
379 for (i = 0; i < rfs->old_fs->group_desc_count; i++) { in move_bg_metadata()
435 for (i = 0; i < rfs->old_fs->group_desc_count; i++) { in move_bg_metadata()
592 for (g=0; g < fs->group_desc_count; g++) { in fix_uninit_block_bitmaps()
639 dgrp_t count = old_fs->group_desc_count - fs->group_desc_count; in free_gdp_blocks()
709 fs->group_desc_count = ext2fs_div64_ceil(ext2fs_blocks_count(fs->super) - in adjust_fs_info()
712 if (fs->group_desc_count == 0) in adjust_fs_info()
[all …]
Donline.c224 size = fs->group_desc_count * sb->s_blocks_per_group + in online_resize_fs()
235 for (i = fs->group_desc_count; in online_resize_fs()
236 i < new_fs->group_desc_count; i++) { in online_resize_fs()
Dmain.c120 for (group = 0; group < fs->group_desc_count; group++) { in determine_fs_stride()
143 if (fs->group_desc_count > 12 && num < 3) in determine_fs_stride()
/third_party/e2fsprogs/lib/ext2fs/
Dinitialize.c280 fs->group_desc_count = 0; in ext2fs_initialize()
287 fs->group_desc_count = (dgrp_t) ext2fs_div64_ceil( in ext2fs_initialize()
290 if (fs->group_desc_count == 0) { in ext2fs_initialize()
299 fs->desc_blocks = ext2fs_div_ceil(fs->group_desc_count, in ext2fs_initialize()
323 ipg = ext2fs_div_ceil(super->s_inodes_count, fs->group_desc_count); in ext2fs_initialize()
372 if ((__u64)super->s_inodes_per_group * fs->group_desc_count > ~0U) { in ext2fs_initialize()
377 fs->group_desc_count; in ext2fs_initialize()
434 if (fs->group_desc_count == 2) in ext2fs_initialize()
439 has_bg = ext2fs_bg_has_super(fs, fs->group_desc_count - 1); in ext2fs_initialize()
444 if ((fs->group_desc_count == 1) && rem && (rem < overhead)) { in ext2fs_initialize()
[all …]
Dimager.c76 for (group = 0; group < fs->group_desc_count; group++) { in ext2fs_image_inode_write()
158 for (group = 0; group < fs->group_desc_count; group++) { in ext2fs_image_inode_read()
297 size = (ssize_t)fs->blocksize * (fs->group_desc_count + 1); in ext2fs_image_super_read()
321 (ssize_t)fs->blocksize * fs->group_desc_count); in ext2fs_image_super_read()
351 fs->group_desc_count; in ext2fs_image_bitmap_write()
361 cnt = EXT2_GROUPS_TO_CLUSTERS(fs->super, fs->group_desc_count); in ext2fs_image_bitmap_write()
364 total_size = size * fs->group_desc_count; in ext2fs_image_bitmap_write()
427 fs->group_desc_count; in ext2fs_image_bitmap_read()
437 cnt = EXT2_GROUPS_TO_BLOCKS(fs->super, fs->group_desc_count); in ext2fs_image_bitmap_read()
Dalloc_tables.c64 if (last_grp > fs->group_desc_count-1) in flexbg_offset()
65 last_grp = fs->group_desc_count-1; in flexbg_offset()
102 if (last_grp > fs->group_desc_count-1) in ext2fs_allocate_group_table()
103 last_grp = fs->group_desc_count-1; in ext2fs_allocate_group_table()
129 else if (last_grp == fs->group_desc_count-1) { in ext2fs_allocate_group_table()
265 fs->group_desc_count); in ext2fs_allocate_tables()
267 for (i = 0; i < fs->group_desc_count; i++) { in ext2fs_allocate_tables()
Drw_bitmaps.c90 for (i = 0; i < fs->group_desc_count; i++) { in write_bitmaps()
103 if (i == fs->group_desc_count - 1) { in write_bitmaps()
189 for (i = 0; i < fs->group_desc_count; i++) { in mark_uninit_bg_group_blocks()
342 fs->group_desc_count); in read_bitmaps_range_start()
560 if ((unsigned) num_threads > fs->group_desc_count) in ext2fs_rw_bitmaps()
561 num_threads = fs->group_desc_count; in ext2fs_rw_bitmaps()
562 average_group = fs->group_desc_count / num_threads; in ext2fs_rw_bitmaps()
599 thread_infos[i].rbt_grp_end = fs->group_desc_count - 1; in ext2fs_rw_bitmaps()
634 return read_bitmaps_range(fs, flags, 0, fs->group_desc_count - 1); in ext2fs_rw_bitmaps()
Dcheck_desc.c52 for (i = 0; i < fs->group_desc_count; i++) in ext2fs_check_desc()
55 for (i = 0; i < fs->group_desc_count; i++) { in ext2fs_check_desc()
Dopenfs.c363 fs->group_desc_count = 0; in ext2fs_open2()
394 fs->group_desc_count = groups_cnt; in ext2fs_open2()
396 (__u64)fs->group_desc_count * EXT2_INODES_PER_GROUP(fs->super) != in ext2fs_open2()
401 fs->desc_blocks = ext2fs_div_ceil(fs->group_desc_count, in ext2fs_open2()
482 for (group = 0; group < fs->group_desc_count; group++) { in ext2fs_open2()
Dbitmaps.c66 fs->group_desc_count; in ext2fs_allocate_inode_bitmap()
99 * (__u64) fs->group_desc_count)-1 + start; in ext2fs_allocate_block_bitmap()
145 * (__u64) fs->group_desc_count)-1 + start; in ext2fs_allocate_subcluster_bitmap()
Dget_num_dirs.c37 for (i = 0; i < fs->group_desc_count; i++) { in ext2fs_get_num_dirs()
Dres_gdt.c45 return fs->group_desc_count; in list_backups()
187 fs->group_desc_count) { in ext2fs_create_resize_inode()
Dclosefs.c348 for (j = 0; j < fs->group_desc_count; j++) { in ext2fs_flush2()
379 fs->group_desc_count); in ext2fs_flush2()
382 for (i = 0; i < fs->group_desc_count; i++) { in ext2fs_flush2()
Dtst_fs_struct.c49 check_field(group_desc_count); in main()
Dblknum.c40 return (group == fs->group_desc_count - 1 ? in ext2fs_group_last_block2()
53 if (group == fs->group_desc_count - 1) { in ext2fs_group_blocks_count()
212 if (group > fs->group_desc_count) in ext2fs_group_desc()
Dmkjournal.c258 while ((group < fs->group_desc_count) && in get_midpoint_journal_block()
261 if (group == fs->group_desc_count) in get_midpoint_journal_block()
266 end = ((group+1) < fs->group_desc_count) ? group+1 : group; in get_midpoint_journal_block()
Dtst_iscan.c192 for (i = 0; i < test_fs->group_desc_count; i++) { in check_map()
Dalloc.c44 if (group >= fs->group_desc_count || in ext2fs_clear_block_uninit()
65 if (group >= fs->group_desc_count || in check_inode_uninit()
Dinode.c179 scan->groups_left = fs->group_desc_count - 1; in ext2fs_open_inode_scan()
313 scan->groups_left = scan->fs->group_desc_count - group; in ext2fs_inode_scan_goto_blockgroup()
805 if (group > fs->group_desc_count) in ext2fs_read_inode2()
/third_party/e2fsprogs/e2fsck/
Dpass5.c49 if ((ctx->progress)(ctx, 5, 0, ctx->fs->group_desc_count*2)) in e2fsck_pass5()
107 for (i = 0; i < ctx->fs->group_desc_count; i++) { in check_inode_bitmap_checksum()
161 for (i = 0; i < ctx->fs->group_desc_count; i++) { in check_block_bitmap_checksum()
334 fs->group_desc_count * sizeof(unsigned int), "free block count array"); in check_block_bitmaps()
391 (group == fs->group_desc_count - 1) || in check_block_bitmaps()
497 fs->group_desc_count*2)) in check_block_bitmaps()
524 memset(free_array, 0, fs->group_desc_count * sizeof(int)); in check_block_bitmaps()
530 for (g = 0; g < fs->group_desc_count; g++) { in check_block_bitmaps()
584 fs->group_desc_count * sizeof(ext2_ino_t), "free inode count array"); in check_inode_bitmaps()
587 fs->group_desc_count * sizeof(ext2_ino_t), "directory count array"); in check_inode_bitmaps()
[all …]
Dsuper.c536 for (j = 1; j < fs->group_desc_count; j++) { in check_resize_inode()
613 sizeof(int) * fs->group_desc_count, "invalid_inode_bitmap"); in check_super_block()
615 sizeof(int) * fs->group_desc_count, "invalid_block_bitmap"); in check_super_block()
617 sizeof(int) * fs->group_desc_count, "invalid_inode_table"); in check_super_block()
674 should_be = (__u64)sb->s_inodes_per_group * fs->group_desc_count; in check_super_block()
769 for (i = 0; i < fs->group_desc_count; i++) in check_super_block()
814 for (i = 0; i < fs->group_desc_count; i++) { in check_super_block()
887 if (i == fs->group_desc_count - 1 && in check_super_block()
1139 for (g = 1; g < fs->group_desc_count; g++) { in check_backup_super_block()
Dreadahead.c157 if (end > fs->group_desc_count) in e2fsck_readahead()
158 end = fs->group_desc_count; in e2fsck_readahead()
Dpass4.c165 0, fs->group_desc_count); in e2fsck_pass4()
175 maxgroup = fs->group_desc_count; in e2fsck_pass4()
/third_party/e2fsprogs/misc/
Dmke2fs.c319 for (i = 1; i < fs->group_desc_count; i++) { in handle_bad_blocks()
384 for (i = 0; i < fs->group_desc_count; i++) { in packed_allocate_tables()
391 for (i = 0; i < fs->group_desc_count; i++) { in packed_allocate_tables()
398 for (i = 0; i < fs->group_desc_count; i++) { in packed_allocate_tables()
423 fs->group_desc_count); in write_inode_tables()
425 for (i = 0; i < fs->group_desc_count; i++) { in write_inode_tables()
717 if (fs->group_desc_count > 1) in show_stats()
718 printf(_("%u block groups\n"), fs->group_desc_count); in show_stats()
720 printf(_("%u block group\n"), fs->group_desc_count); in show_stats()
730 if (fs->group_desc_count == 1) { in show_stats()
[all …]
Dtune2fs.c939 for (i = 0; i < fs->group_desc_count; i++) in rewrite_metadata_checksums()
962 for (i = 0; i < fs->group_desc_count; i++) { in enable_uninit_bg()
1040 for (i = 0; i < fs->group_desc_count; i++) { in disable_uninit_bg()
2337 for (i = 0; i < fs->group_desc_count; i++) { in get_move_bitmaps()
2590 for (i = 0; i < fs->group_desc_count; i++) { in group_desc_scan_and_fix()
2643 for (i = 0; i < fs->group_desc_count; i++) { in expand_inode_table()
3320 for (i = 0; i < fs->group_desc_count; i++) in main()
3323 if (i >= fs->group_desc_count) in main()
3343 for (i = 0; i < fs->group_desc_count; i++) in main()

12