Lines Matching refs:ino
62 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf);
69 static void clear_htree(e2fsck_t ctx, ext2_ino_t ino);
167 pctx.dir = dx_dir->ino;
242 clear_htree(ctx, dx_dir->ino);
331 if (db_a->ino != db_b->ino)
332 return (int) (db_a->ino - db_b->ino);
344 ext2_ino_t ino, struct problem_context *pctx)
365 dirent->inode = ino;
373 if (dirent->inode != ino) {
375 dirent->inode = ino;
405 ext2_ino_t ino, struct problem_context *pctx)
437 if (e2fsck_dir_info_set_dotdot(ctx, ino, dirent->inode)) {
626 clear_htree(cd->ctx, cd->pctx.ino);
718 ext2_ino_t ino = db->ino;
746 if (!(ext2fs_test_inode_bitmap(ctx->inode_used_map, ino)))
749 cd->pctx.ino = ino;
768 ext2fs_u32_list_test(ctx->dirs_to_hash, ino))
773 db->blockcnt, ino);
789 dx_dir = e2fsck_get_dx_dir_info(ctx, ino);
794 clear_htree(ctx, ino);
818 clear_htree(ctx, ino);
868 if (check_dot(ctx, dirent, ino, &cd->pctx))
871 ret = check_dotdot(ctx, dirent, ino, &cd->pctx);
876 } else if (dirent->inode == ino) {
959 if (e2fsck_process_bad_inode(ctx, ino,
1035 if (check_name(ctx, dirent, ino, &cd->pctx))
1038 if (check_filetype(ctx, dirent, ino, &cd->pctx))
1065 cd->pctx.ino = dirent->inode;
1080 dirent->inode, ino);
1088 pctx.ino = ino;
1094 ext2fs_u32_list_add(ctx->dirs_to_hash, ino);
1121 cd->pctx.dir = cd->pctx.ino;
1177 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf)
1184 e2fsck_read_inode(ctx, ino, &inode, "deallocate_inode");
1185 e2fsck_clear_inode(ctx, ino, &inode, 0, "deallocate_inode");
1187 pctx.ino = ino;
1193 ext2fs_inode_alloc_stats2(fs, ino, -1, LINUX_S_ISDIR(inode.i_mode));
1224 pctx.errcode = ext2fs_block_iterate2(fs, ino, 0, block_buf,
1236 static void clear_htree(e2fsck_t ctx, ext2_ino_t ino)
1240 e2fsck_read_inode(ctx, ino, &inode, "clear_htree");
1242 e2fsck_write_inode(ctx, ino, &inode, "clear_htree");
1244 ext2fs_u32_list_add(ctx->dirs_to_hash, ino);
1249 ext2_ino_t ino, char *buf)
1259 e2fsck_read_inode(ctx, ino, &inode, "process_bad_inode");
1262 pctx.ino = ino;
1293 && !e2fsck_pass1_check_symlink(fs, ino, &inode, buf)) {
1299 deallocate_inode(ctx, ino, 0);
1384 e2fsck_write_inode(ctx, ino, &inode, "process_bad_inode");
1386 ext2fs_unmark_inode_bitmap(ctx->inode_bad_map, ino);
1435 pctx->errcode = ext2fs_new_dir_block(fs, db->ino,
1455 e2fsck_read_inode(ctx, db->ino, &inode, "allocate_dir_block");
1459 e2fsck_write_inode(ctx, db->ino, &inode, "allocate_dir_block");
1465 pctx->errcode = ext2fs_bmap(fs, db->ino, &inode, 0, BMAP_SET,