Lines Matching refs:dx_dir

74 static int htree_depth(struct dx_dir_info *dx_dir,
88 static void update_parents(struct dx_dir_info *dx_dir, int type) in update_parents() argument
93 for (b = 0, dx_db = dx_dir->dx_block; in update_parents()
94 b < dx_dir->numblocks; in update_parents()
96 dx_parent = &dx_dir->dx_block[dx_db->parent]; in update_parents()
107 &dx_dir->dx_block[dx_parent->previous]; in update_parents()
131 struct dx_dir_info *dx_dir; in e2fsck_pass2() local
200 for (i=0; (dx_dir = e2fsck_dx_dir_info_iter(ctx, &i)) != 0;) { in e2fsck_pass2()
203 if (e2fsck_dir_will_be_rehashed(ctx, dx_dir->ino) || in e2fsck_pass2()
204 dx_dir->numblocks == 0) in e2fsck_pass2()
208 pctx.dir = dx_dir->ino; in e2fsck_pass2()
209 dx_db = dx_dir->dx_block; in e2fsck_pass2()
218 update_parents(dx_dir, DX_DIRBLOCK_LEAF); in e2fsck_pass2()
222 update_parents(dx_dir, DX_DIRBLOCK_NODE); in e2fsck_pass2()
224 for (b=0, dx_db = dx_dir->dx_block; in e2fsck_pass2()
225 b < dx_dir->numblocks; in e2fsck_pass2()
239 depth = htree_depth(dx_dir, dx_db); in e2fsck_pass2()
240 if (depth != dx_dir->depth) { in e2fsck_pass2()
241 pctx.num = dx_dir->depth; in e2fsck_pass2()
270 clear_htree(ctx, dx_dir->ino); in e2fsck_pass2()
271 dx_dir->numblocks = 0; in e2fsck_pass2()
313 static int htree_depth(struct dx_dir_info *dx_dir, in htree_depth() argument
319 dx_db = &dx_dir->dx_block[dx_db->parent]; in htree_depth()
569 struct dx_dir_info *dx_dir, in parse_int_node() argument
648 if (blk >= (blk_t) dx_dir->numblocks) { in parse_int_node()
658 dx_db = &dx_dir->dx_block[blk]; in parse_int_node()
689 dx_db = &dx_dir->dx_block[db->blockcnt]; in parse_int_node()
696 dx_dir->numblocks = 0; in parse_int_node()
907 struct dx_dir_info *dx_dir; in check_dir_block() local
1066 dx_dir = e2fsck_get_dx_dir_info(ctx, ino); in check_dir_block()
1067 if (dx_dir && dx_dir->numblocks) { in check_dir_block()
1068 if (db->blockcnt >= dx_dir->numblocks) { in check_dir_block()
1073 dx_dir->numblocks = 0; in check_dir_block()
1079 dx_db = &dx_dir->dx_block[db->blockcnt]; in check_dir_block()
1098 dx_dir->numblocks = 0; in check_dir_block()
1101 dx_dir->hashversion = root->hash_version; in check_dir_block()
1102 if ((dx_dir->hashversion <= EXT2_HASH_TEA) && in check_dir_block()
1104 dx_dir->hashversion += 3; in check_dir_block()
1105 dx_dir->depth = root->indirect_levels + 1; in check_dir_block()
1429 ext2fs_dirhash(dx_dir->hashversion, dirent->name, in check_dir_block()
1521 parse_int_node(fs, db, cd, dx_dir, buf, failed_csum); in check_dir_block()