• Home
  • Raw
  • Download

Lines Matching refs:new_fs

134 	retval = ext2fs_dup_handle(fs, &rfs->new_fs);  in resize_fs()
163 fix_uninit_block_bitmaps(rfs->new_fs); in resize_fs()
166 ext2fs_bg_flags_clear(rfs->new_fs, rfs->new_fs->group_desc_count - 1, in resize_fs()
169 *new_size = ext2fs_blocks_count(rfs->new_fs->super); in resize_fs()
181 ext2fs_free_blocks_count(rfs->new_fs->super), in resize_fs()
214 retval = ext2fs_calculate_summary_stats(rfs->new_fs); in resize_fs()
220 retval = fix_resize_inode(rfs->new_fs); in resize_fs()
226 retval = fix_sb_journal_backup(rfs->new_fs); in resize_fs()
231 retval = ext2fs_set_gdt_csum(rfs->new_fs); in resize_fs()
235 rfs->new_fs->super->s_state &= ~EXT2_ERROR_FS; in resize_fs()
236 rfs->new_fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY; in resize_fs()
239 retval = ext2fs_close_free(&rfs->new_fs); in resize_fs()
258 if (rfs->new_fs) { in resize_fs()
259 ext2fs_free(rfs->new_fs); in resize_fs()
260 rfs->new_fs = NULL; in resize_fs()
296 if (new_size != ext2fs_blocks_count(rfs->new_fs->super) || in resize_group_descriptors()
297 ext2fs_blocks_count(rfs->new_fs->super) >= (1ULL << 32) || in resize_group_descriptors()
303 ext2fs_clear_feature_64bit(rfs->new_fs->super); in resize_group_descriptors()
304 rfs->new_fs->super->s_desc_size = EXT2_MIN_DESC_SIZE; in resize_group_descriptors()
306 ext2fs_set_feature_64bit(rfs->new_fs->super); in resize_group_descriptors()
307 rfs->new_fs->super->s_desc_size = EXT2_MIN_DESC_SIZE_64BIT; in resize_group_descriptors()
311 EXT2_DESC_SIZE(rfs->new_fs->super)) in resize_group_descriptors()
314 o = rfs->new_fs->group_desc; in resize_group_descriptors()
315 rfs->new_fs->desc_blocks = ext2fs_div_ceil( in resize_group_descriptors()
317 EXT2_DESC_PER_BLOCK(rfs->new_fs->super)); in resize_group_descriptors()
318 retval = ext2fs_get_arrayzero(rfs->new_fs->desc_blocks, in resize_group_descriptors()
326 EXT2_DESC_SIZE(rfs->new_fs->super)) in resize_group_descriptors()
329 copy_size = EXT2_DESC_SIZE(rfs->new_fs->super); in resize_group_descriptors()
332 n = (char *)n + EXT2_DESC_SIZE(rfs->new_fs->super); in resize_group_descriptors()
336 ext2fs_free_mem(&rfs->new_fs->group_desc); in resize_group_descriptors()
337 rfs->new_fs->group_desc = new_group_desc; in resize_group_descriptors()
340 ext2fs_group_desc_csum_set(rfs->new_fs, i); in resize_group_descriptors()
342 adjust_reserved_gdt_blocks(rfs->old_fs, rfs->new_fs); in resize_group_descriptors()
364 retval = ext2fs_allocate_block_bitmap(rfs->new_fs, "newfs", &new_map); in move_bg_metadata()
370 new_desc_blocks = rfs->new_fs->super->s_first_meta_bg; in move_bg_metadata()
374 new_desc_blocks = rfs->new_fs->desc_blocks + in move_bg_metadata()
375 rfs->new_fs->super->s_reserved_gdt_blocks; in move_bg_metadata()
391 retval = ext2fs_super_and_bgd_loc2(rfs->new_fs, i, &b, &c, &d, in move_bg_metadata()
403 cluster_ratio = EXT2FS_CLUSTER_RATIO(rfs->new_fs); in move_bg_metadata()
408 b < ext2fs_blocks_count(rfs->new_fs->super); in move_bg_metadata()
417 rfs->new_fs->block_map, b); in move_bg_metadata()
436 b = ext2fs_block_bitmap_loc(rfs->new_fs, i); in move_bg_metadata()
438 ext2fs_block_bitmap_loc_set(rfs->new_fs, i, 0); in move_bg_metadata()
442 b = ext2fs_inode_bitmap_loc(rfs->new_fs, i); in move_bg_metadata()
444 ext2fs_inode_bitmap_loc_set(rfs->new_fs, i, 0); in move_bg_metadata()
448 c = ext2fs_inode_table_loc(rfs->new_fs, i); in move_bg_metadata()
450 b < rfs->new_fs->inode_blocks_per_group; in move_bg_metadata()
453 ext2fs_inode_table_loc_set(rfs->new_fs, i, 0); in move_bg_metadata()
461 cluster_ratio > 1 && b < ext2fs_blocks_count(rfs->new_fs->super); in move_bg_metadata()
464 ext2fs_unmark_block_bitmap2(rfs->new_fs->block_map, b); in move_bg_metadata()
1027 ext2_filsys fs = rfs->new_fs; in adjust_superblock()
1052 rfs->new_fs->super->s_inodes_count) { in adjust_superblock()
1191 ext2_filsys fs = rfs->new_fs; in mark_fs_metablock()
1272 fs = rfs->new_fs; in blocks_to_move()
1291 fs = rfs->new_fs; in blocks_to_move()
1368 EXT2_DESC_SIZE(rfs->new_fs->super) && in blocks_to_move()
1490 group_blk += rfs->new_fs->super->s_blocks_per_group; in blocks_to_move()
1591 rfs->new_blk = rfs->new_fs->super->s_first_data_block; in init_block_alloc()
1594 if (ext2fs_blocks_count(rfs->new_fs->super) > in init_block_alloc()
1602 ext2_filsys fs = rfs->new_fs; in get_new_block()
1650 ext2fs_mark_block_bitmap2(rfs->new_fs->block_map, blk); in resize2fs_get_alloc_block()
1654 group = ext2fs_group_of_blk2(rfs->new_fs, blk); in resize2fs_get_alloc_block()
1655 ext2fs_clear_block_uninit(rfs->new_fs, group); in resize2fs_get_alloc_block()
1664 ext2_filsys fs = rfs->new_fs; in block_mover()
1910 if (ext2fs_has_feature_metadata_csum(rfs->new_fs->super)) { in migrate_ea_block()
2005 ext2_filsys fs = rfs->new_fs; in fix_ea_inode_refs()
2090 rfs->new_fs->group_desc_count) && in inode_scan_and_fix()
2104 start_to_move = (rfs->new_fs->group_desc_count * in inode_scan_and_fix()
2105 rfs->new_fs->super->s_inodes_per_group); in inode_scan_and_fix()
2117 new_inode = EXT2_FIRST_INODE(rfs->new_fs->super); in inode_scan_and_fix()
2118 inode_size = EXT2_INODE_SIZE(rfs->new_fs->super); in inode_scan_and_fix()
2154 retval = ext2fs_new_inode(rfs->new_fs, 0, 0, 0, &new_inode); in inode_scan_and_fix()
2158 ext2fs_inode_alloc_stats2(rfs->new_fs, new_inode, +1, in inode_scan_and_fix()
2234 ext2fs_has_feature_ea_inode(rfs->new_fs->super)) { in inode_scan_and_fix()
2401 ext2_filsys fs = rfs->new_fs; in move_itables()
2559 ext2_filsys fs = rfs->new_fs; in clear_sparse_super2_last_group()
2610 ext2_filsys fs = rfs->new_fs; in reserve_sparse_super2_last_group()
2638 retval = ext2fs_super_and_bgd_loc2(rfs->new_fs, last_bg, in reserve_sparse_super2_last_group()