• Home
  • Raw
  • Download

Lines Matching refs:idx

501 	struct ubifs_idx_node idx __aligned(8);
516 struct ubifs_idx_node *idx; in dbg_old_index_check_init() local
525 idx = kmalloc(c->max_idx_node_sz, GFP_NOFS); in dbg_old_index_check_init()
526 if (!idx) in dbg_old_index_check_init()
529 err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs); in dbg_old_index_check_init()
533 d->old_zroot_level = le16_to_cpu(idx->level); in dbg_old_index_check_init()
534 d->old_zroot_sqnum = le64_to_cpu(idx->ch.sqnum); in dbg_old_index_check_init()
536 kfree(idx); in dbg_old_index_check_init()
560 struct ubifs_idx_node *idx; in dbg_check_old_index() local
596 idx = &i->idx; in dbg_check_old_index()
597 err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs); in dbg_check_old_index()
601 child_cnt = le16_to_cpu(idx->child_cnt); in dbg_check_old_index()
609 if (le16_to_cpu(idx->level) != d->old_zroot_level) { in dbg_check_old_index()
613 if (le64_to_cpu(idx->ch.sqnum) != d->old_zroot_sqnum) { in dbg_check_old_index()
618 last_level = le16_to_cpu(idx->level) + 1; in dbg_check_old_index()
619 last_sqnum = le64_to_cpu(idx->ch.sqnum) + 1; in dbg_check_old_index()
620 key_read(c, ubifs_idx_key(c, idx), &lower_key); in dbg_check_old_index()
624 if (le16_to_cpu(idx->level) != last_level - 1) { in dbg_check_old_index()
632 if (le64_to_cpu(idx->ch.sqnum) >= last_sqnum) { in dbg_check_old_index()
637 key_read(c, ubifs_idx_key(c, idx), &l_key); in dbg_check_old_index()
638 br = ubifs_idx_branch(c, idx, child_cnt - 1); in dbg_check_old_index()
654 if (le16_to_cpu(idx->level) == 0) { in dbg_check_old_index()
666 idx = &i->idx; in dbg_check_old_index()
668 if (iip + 1 < le16_to_cpu(idx->child_cnt)) { in dbg_check_old_index()
682 last_level = le16_to_cpu(idx->level); in dbg_check_old_index()
683 last_sqnum = le64_to_cpu(idx->ch.sqnum); in dbg_check_old_index()
684 br = ubifs_idx_branch(c, idx, iip); in dbg_check_old_index()
689 if (iip + 1 < le16_to_cpu(idx->child_cnt)) { in dbg_check_old_index()
690 br = ubifs_idx_branch(c, idx, iip + 1); in dbg_check_old_index()
704 ubifs_dump_node(c, idx); in dbg_check_old_index()
710 ubifs_dump_node(c, &i->idx); in dbg_check_old_index()