Lines Matching refs:ino
89 static void delete_file(e2fsck_t ctx, ext2_ino_t ino,
91 static errcode_t clone_file(e2fsck_t ctx, ext2_ino_t ino,
120 static void add_dupe(e2fsck_t ctx, ext2_ino_t ino, blk64_t cluster, in add_dupe() argument
141 ino_el->inode = ino; in add_dupe()
146 n = dict_lookup(&ino_dict, INT_TO_VOIDPTR(ino)); in add_dupe()
152 if (ino == EXT2_ROOT_INO) { in add_dupe()
161 dict_alloc_insert(&ino_dict, INT_TO_VOIDPTR(ino), di); in add_dupe()
280 ext2_ino_t ino; member
291 ext2_ino_t ino = 0; in pass1b() local
314 if (ino % (fs->super->s_inodes_per_group * 4) == 1) { in pass1b()
318 pctx.errcode = ext2fs_get_next_inode_full(scan, &ino, in pass1b()
323 pctx.ino = ino; in pass1b()
328 if (!ino) in pass1b()
330 pctx.ino = ctx->stashed_ino = ino; in pass1b()
331 if ((ino != EXT2_BAD_INO) && in pass1b()
332 !ext2fs_test_inode_bitmap2(ctx->inode_used_map, ino)) in pass1b()
335 pb.ino = ino; in pass1b()
344 (ino == EXT2_BAD_INO)) in pass1b()
345 pctx.errcode = ext2fs_block_iterate3(fs, ino, in pass1b()
357 if (ino != EXT2_BAD_INO) { in pass1b()
363 if (ino >= EXT2_FIRST_INODE(fs->super) || in pass1b()
364 ino == EXT2_ROOT_INO) in pass1b()
397 if (p->ino != EXT2_BAD_INO) { in process_pass1b_block()
411 ext2fs_mark_inode_bitmap2(inode_dup_map, p->ino); in process_pass1b_block()
421 add_dupe(ctx, p->ino, EXT2FS_B2C(fs, *block_nr), p->inode); in process_pass1b_block()
501 ext2_ino_t *shared, ino; in pass1d() local
526 ino = (ext2_ino_t)VOIDPTR_TO_INT(dnode_getkey(n)); in pass1d()
527 if (ino == EXT2_BAD_INO || ino == EXT2_RESIZE_INO) in pass1d()
556 if (r->inode == ino) in pass1d()
571 pctx.ino = ino; in pass1d()
591 pctx.ino = shared[i]; in pass1d()
605 pctx.errcode = clone_file(ctx, ino, p, block_buf); in pass1d()
618 delete_file(ctx, ino, p, block_buf); in pass1d()
684 static void delete_file(e2fsck_t ctx, ext2_ino_t ino, in delete_file() argument
693 pctx.ino = pb.ino = ino; in delete_file()
700 pctx.errcode = ext2fs_block_iterate3(fs, ino, in delete_file()
707 ext2fs_unmark_inode_bitmap2(ctx->inode_bad_map, ino); in delete_file()
708 ext2fs_inode_alloc_stats2(fs, ino, -1, LINUX_S_ISDIR(dp->inode.i_mode)); in delete_file()
709 quota_data_sub(ctx->qctx, &dp->inode, ino, in delete_file()
711 quota_data_inodes(ctx->qctx, &dp->inode, ino, -1); in delete_file()
714 e2fsck_read_inode_full(ctx, ino, EXT2_INODE(&dp->inode), in delete_file()
716 e2fsck_clear_inode(ctx, ino, EXT2_INODE(&dp->inode), 0, "delete_file"); in delete_file()
724 block_buf, -1, &count, ino); in delete_file()
746 quota_data_sub(ctx->qctx, &dp->inode, ino, in delete_file()
756 ext2_ino_t dir, ino; member
841 retval = ext2fs_map_cluster_block(fs, cs->ino, in clone_file_block()
908 static errcode_t clone_file(e2fsck_t ctx, ext2_ino_t ino, in clone_file() argument
927 cs.ino = ino; in clone_file()
935 if (ext2fs_test_inode_bitmap2(ctx->inode_dir_map, ino)) in clone_file()
936 cs.dir = ino; in clone_file()
938 pctx.ino = ino; in clone_file()
941 pctx.errcode = ext2fs_block_iterate3(fs, ino, 0, block_buf, in clone_file()
957 e2fsck_read_inode_full(ctx, ino, EXT2_INODE(&dp->inode), in clone_file()
965 e2fsck_write_inode_full(ctx, ino, EXT2_INODE(&dp->inode), in clone_file()
983 if (ino_el->inode == ino) in clone_file()