Lines Matching refs:dx_dir

74 static int htree_depth(struct dx_dir_info *dx_dir,
98 struct dx_dir_info *dx_dir; in e2fsck_pass2() local
167 for (i=0; (dx_dir = e2fsck_dx_dir_info_iter(ctx, &i)) != 0;) { in e2fsck_pass2()
170 if (e2fsck_dir_will_be_rehashed(ctx, dx_dir->ino) || in e2fsck_pass2()
171 dx_dir->numblocks == 0) in e2fsck_pass2()
175 pctx.dir = dx_dir->ino; in e2fsck_pass2()
176 dx_db = dx_dir->dx_block; in e2fsck_pass2()
185 for (b=0, dx_db = dx_dir->dx_block; in e2fsck_pass2()
186 b < dx_dir->numblocks; in e2fsck_pass2()
191 dx_parent = &dx_dir->dx_block[dx_db->parent]; in e2fsck_pass2()
204 for (b=0, dx_db = dx_dir->dx_block; in e2fsck_pass2()
205 b < dx_dir->numblocks; in e2fsck_pass2()
219 depth = htree_depth(dx_dir, dx_db); in e2fsck_pass2()
220 if (depth != dx_dir->depth) { in e2fsck_pass2()
221 pctx.num = dx_dir->depth; in e2fsck_pass2()
250 clear_htree(ctx, dx_dir->ino); in e2fsck_pass2()
251 dx_dir->numblocks = 0; in e2fsck_pass2()
291 static int htree_depth(struct dx_dir_info *dx_dir, in htree_depth() argument
297 dx_db = &dx_dir->dx_block[dx_db->parent]; in htree_depth()
547 struct dx_dir_info *dx_dir, in parse_int_node() argument
626 if (blk >= (blk_t) dx_dir->numblocks) { in parse_int_node()
636 dx_db = &dx_dir->dx_block[blk]; in parse_int_node()
662 dx_db = &dx_dir->dx_block[db->blockcnt]; in parse_int_node()
669 dx_dir->numblocks = 0; in parse_int_node()
880 struct dx_dir_info *dx_dir; in check_dir_block() local
1031 dx_dir = e2fsck_get_dx_dir_info(ctx, ino); in check_dir_block()
1032 if (dx_dir && dx_dir->numblocks) { in check_dir_block()
1033 if (db->blockcnt >= dx_dir->numblocks) { in check_dir_block()
1038 dx_dir->numblocks = 0; in check_dir_block()
1044 dx_db = &dx_dir->dx_block[db->blockcnt]; in check_dir_block()
1062 dx_dir->numblocks = 0; in check_dir_block()
1065 dx_dir->hashversion = root->hash_version; in check_dir_block()
1066 if ((dx_dir->hashversion <= EXT2_HASH_TEA) && in check_dir_block()
1068 dx_dir->hashversion += 3; in check_dir_block()
1069 dx_dir->depth = root->indirect_levels + 1; in check_dir_block()
1392 ext2fs_dirhash(dx_dir->hashversion, dirent->name, in check_dir_block()
1484 parse_int_node(fs, db, cd, dx_dir, buf, failed_csum); in check_dir_block()