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