Lines Matching refs:dx_db
71 struct dx_dirblock_info *dx_db);
92 struct dx_dirblock_info *dx_db, *dx_parent; in e2fsck_pass2() local
173 dx_db = dx_dir->dx_block; in e2fsck_pass2()
174 if (dx_db->flags & DX_FLAG_REFERENCED) in e2fsck_pass2()
175 dx_db->flags |= DX_FLAG_DUP_REF; in e2fsck_pass2()
177 dx_db->flags |= DX_FLAG_REFERENCED; in e2fsck_pass2()
182 for (b=0, dx_db = dx_dir->dx_block; in e2fsck_pass2()
184 b++, dx_db++) { in e2fsck_pass2()
185 if ((dx_db->type != DX_DIRBLOCK_LEAF) || in e2fsck_pass2()
186 !(dx_db->flags & (DX_FLAG_FIRST | DX_FLAG_LAST))) in e2fsck_pass2()
188 dx_parent = &dx_dir->dx_block[dx_db->parent]; in e2fsck_pass2()
192 if (dx_db->flags & DX_FLAG_FIRST) in e2fsck_pass2()
193 dx_parent->min_hash = dx_db->min_hash; in e2fsck_pass2()
197 if (dx_db->flags & DX_FLAG_LAST) in e2fsck_pass2()
198 dx_parent->max_hash = dx_db->max_hash; in e2fsck_pass2()
201 for (b=0, dx_db = dx_dir->dx_block; in e2fsck_pass2()
203 b++, dx_db++) { in e2fsck_pass2()
205 pctx.group = dx_db->parent; in e2fsck_pass2()
207 if (!(dx_db->flags & DX_FLAG_FIRST) && in e2fsck_pass2()
208 (dx_db->min_hash < dx_db->node_min_hash)) { in e2fsck_pass2()
209 pctx.blk = dx_db->min_hash; in e2fsck_pass2()
210 pctx.blk2 = dx_db->node_min_hash; in e2fsck_pass2()
215 if (dx_db->type == DX_DIRBLOCK_LEAF) { in e2fsck_pass2()
216 depth = htree_depth(dx_dir, dx_db); in e2fsck_pass2()
229 (dx_db->max_hash > dx_db->node_max_hash)) { in e2fsck_pass2()
230 pctx.blk = dx_db->max_hash; in e2fsck_pass2()
231 pctx.blk2 = dx_db->node_max_hash; in e2fsck_pass2()
236 if (!(dx_db->flags & DX_FLAG_REFERENCED)) { in e2fsck_pass2()
240 } else if (dx_db->flags & DX_FLAG_DUP_REF) { in e2fsck_pass2()
291 struct dx_dirblock_info *dx_db) in htree_depth() argument
295 while (dx_db->type != DX_DIRBLOCK_ROOT && depth < MAX_DEPTH) { in htree_depth()
296 dx_db = &dx_dir->dx_block[dx_db->parent]; in htree_depth()
550 struct dx_dirblock_info *dx_db; in parse_int_node() local
616 dx_db = &dx_dir->dx_block[blk]; in parse_int_node()
617 if (dx_db->flags & DX_FLAG_REFERENCED) { in parse_int_node()
618 dx_db->flags |= DX_FLAG_DUP_REF; in parse_int_node()
620 dx_db->flags |= DX_FLAG_REFERENCED; in parse_int_node()
621 dx_db->parent = db->blockcnt; in parse_int_node()
627 dx_db->node_min_hash = hash; in parse_int_node()
629 dx_db->node_max_hash = in parse_int_node()
632 dx_db->node_max_hash = 0xfffffffe; in parse_int_node()
633 dx_db->flags |= DX_FLAG_LAST; in parse_int_node()
636 dx_db->flags |= DX_FLAG_FIRST; in parse_int_node()
642 dx_db = &dx_dir->dx_block[db->blockcnt]; in parse_int_node()
643 dx_db->min_hash = min_hash; in parse_int_node()
644 dx_db->max_hash = max_hash; in parse_int_node()
730 struct dx_dirblock_info *dx_db = 0; in check_dir_block() local
818 dx_db = 0; in check_dir_block()
823 dx_db = &dx_dir->dx_block[db->blockcnt]; in check_dir_block()
824 dx_db->type = DX_DIRBLOCK_LEAF; in check_dir_block()
825 dx_db->phys = block_nr; in check_dir_block()
826 dx_db->min_hash = ~0; in check_dir_block()
827 dx_db->max_hash = 0; in check_dir_block()
834 dx_db->type = DX_DIRBLOCK_ROOT; in check_dir_block()
835 dx_db->flags |= DX_FLAG_FIRST | DX_FLAG_LAST; in check_dir_block()
842 dx_db = 0; in check_dir_block()
855 dx_db->type = DX_DIRBLOCK_NODE; in check_dir_block()
1067 if (dx_db) { in check_dir_block()
1071 if (hash < dx_db->min_hash) in check_dir_block()
1072 dx_db->min_hash = hash; in check_dir_block()
1073 if (hash > dx_db->max_hash) in check_dir_block()
1074 dx_db->max_hash = hash; in check_dir_block()
1140 if (dx_db) { in check_dir_block()
1143 db->blockcnt, dx_db->type, in check_dir_block()
1144 dx_db->min_hash, dx_db->max_hash); in check_dir_block()
1147 if ((dx_db->type == DX_DIRBLOCK_ROOT) || in check_dir_block()
1148 (dx_db->type == DX_DIRBLOCK_NODE)) in check_dir_block()