Lines Matching refs:ino
88 static void delete_file(e2fsck_t ctx, ext2_ino_t ino,
90 static errcode_t clone_file(e2fsck_t ctx, ext2_ino_t ino,
119 static void add_dupe(e2fsck_t ctx, ext2_ino_t ino, blk64_t cluster, in add_dupe() argument
140 ino_el->inode = ino; in add_dupe()
145 n = dict_lookup(&ino_dict, INT_TO_VOIDPTR(ino)); in add_dupe()
151 if (ino == EXT2_ROOT_INO) { in add_dupe()
160 dict_alloc_insert(&ino_dict, INT_TO_VOIDPTR(ino), di); in add_dupe()
261 ext2_ino_t ino; member
271 ext2_ino_t ino = 0; in pass1b() local
293 if (ino % (fs->super->s_inodes_per_group * 4) == 1) { in pass1b()
297 pctx.errcode = ext2fs_get_next_inode(scan, &ino, &inode); in pass1b()
305 if (!ino) in pass1b()
307 pctx.ino = ctx->stashed_ino = ino; in pass1b()
308 if ((ino != EXT2_BAD_INO) && in pass1b()
309 !ext2fs_test_inode_bitmap2(ctx->inode_used_map, ino)) in pass1b()
312 pb.ino = ino; in pass1b()
318 (ino == EXT2_BAD_INO)) in pass1b()
319 pctx.errcode = ext2fs_block_iterate3(fs, ino, in pass1b()
332 if (ino >= EXT2_FIRST_INODE(fs->super) || in pass1b()
333 ino == EXT2_ROOT_INO) in pass1b()
364 if (p->ino != EXT2_BAD_INO) { in process_pass1b_block()
369 ext2fs_mark_inode_bitmap2(inode_dup_map, p->ino); in process_pass1b_block()
372 add_dupe(ctx, p->ino, EXT2FS_B2C(fs, *block_nr), p->inode); in process_pass1b_block()
451 ext2_ino_t *shared, ino; in pass1d() local
476 ino = (ext2_ino_t)VOIDPTR_TO_INT(dnode_getkey(n)); in pass1d()
477 if (ino == EXT2_BAD_INO || ino == EXT2_RESIZE_INO) in pass1d()
506 if (r->inode == ino) in pass1d()
521 pctx.ino = ino; in pass1d()
541 pctx.ino = shared[i]; in pass1d()
550 pctx.errcode = clone_file(ctx, ino, p, block_buf); in pass1d()
557 delete_file(ctx, ino, p, block_buf); in pass1d()
621 static void delete_file(e2fsck_t ctx, ext2_ino_t ino, in delete_file() argument
630 pctx.ino = pb.ino = ino; in delete_file()
637 pctx.errcode = ext2fs_block_iterate3(fs, ino, in delete_file()
644 ext2fs_unmark_inode_bitmap2(ctx->inode_bad_map, ino); in delete_file()
645 ext2fs_inode_alloc_stats2(fs, ino, -1, LINUX_S_ISDIR(dp->inode.i_mode)); in delete_file()
646 quota_data_sub(ctx->qctx, &dp->inode, ino, in delete_file()
648 quota_data_inodes(ctx->qctx, &dp->inode, ino, -1); in delete_file()
651 e2fsck_read_inode(ctx, ino, &dp->inode, "delete_file"); in delete_file()
652 e2fsck_clear_inode(ctx, ino, &dp->inode, 0, "delete_file"); in delete_file()
680 quota_data_sub(ctx->qctx, &dp->inode, ino, fs->blocksize); in delete_file()
781 static errcode_t clone_file(e2fsck_t ctx, ext2_ino_t ino, in clone_file() argument
804 if (ext2fs_test_inode_bitmap2(ctx->inode_dir_map, ino)) in clone_file()
805 cs.dir = ino; in clone_file()
807 pctx.ino = ino; in clone_file()
810 pctx.errcode = ext2fs_block_iterate3(fs, ino, 0, block_buf, in clone_file()
825 e2fsck_read_inode(ctx, ino, &dp->inode, "clone file EA"); in clone_file()
832 e2fsck_write_inode(ctx, ino, &dp->inode, "clone file EA"); in clone_file()
849 if (ino_el->inode == ino) in clone_file()