• Home
  • Raw
  • Download

Lines Matching refs:lnum

433 		pr_err("\tlnum           %u\n", le32_to_cpu(ref->lnum));  in ubifs_dump_node()
546 i, le32_to_cpu(br->lnum), le32_to_cpu(br->offs), in ubifs_dump_node()
656 c->jheads[i].wbuf.lnum); in ubifs_dump_budg()
659 pr_err("\tbud LEB %d\n", bud->lnum); in ubifs_dump_budg()
662 pr_err("\told bud LEB %d\n", bud->lnum); in ubifs_dump_budg()
665 idx_gc->lnum, idx_gc->unmap); in ubifs_dump_budg()
694 lp->lnum, lp->free, lp->dirty, c->leb_size - spc, spc, in ubifs_dump_lprop()
698 lp->lnum, lp->free, lp->dirty, c->leb_size - spc, spc, in ubifs_dump_lprop()
747 if (bud->lnum == lp->lnum) { in ubifs_dump_lprop()
756 lp->lnum == c->jheads[i].wbuf.lnum) { in ubifs_dump_lprop()
766 if (lp->lnum == c->gc_lnum) in ubifs_dump_lprop()
773 int lnum, err; in ubifs_dump_lprops() local
781 for (lnum = c->main_first; lnum < c->leb_cnt; lnum++) { in ubifs_dump_lprops()
782 err = ubifs_read_one_lp(c, lnum, &lp); in ubifs_dump_lprops()
784 ubifs_err(c, "cannot read lprops for LEB %d", lnum); in ubifs_dump_lprops()
831 void ubifs_dump_leb(const struct ubifs_info *c, int lnum) in ubifs_dump_leb() argument
837 pr_err("(pid %d) start dumping LEB %d\n", current->pid, lnum); in ubifs_dump_leb()
841 ubifs_err(c, "cannot allocate memory for dumping LEB %d", lnum); in ubifs_dump_leb()
845 sleb = ubifs_scan(c, lnum, 0, buf, 0); in ubifs_dump_leb()
851 pr_err("LEB %d has %d nodes ending at %d\n", lnum, in ubifs_dump_leb()
856 pr_err("Dumping node at LEB %d:%d len %d\n", lnum, in ubifs_dump_leb()
861 pr_err("(pid %d) finish dumping LEB %d\n", current->pid, lnum); in ubifs_dump_leb()
883 znode, zbr->lnum, zbr->offs, zbr->len, znode->parent, znode->iip, in ubifs_dump_znode()
896 n, zbr->znode, zbr->lnum, zbr->offs, zbr->len, in ubifs_dump_znode()
901 n, zbr->znode, zbr->lnum, zbr->offs, zbr->len, in ubifs_dump_znode()
918 i, lprops->lnum, lprops->hpos, lprops->free, in ubifs_dump_heap()
938 i, lp->free, lp->dirty, lp->flags, lp->lnum); in ubifs_dump_pnode()
1230 ubifs_err(c, "1st entry at %d:%d has key %s", zbr1->lnum, in dbg_check_key_order()
1242 ubifs_err(c, "2nd entry at %d:%d has key %s", zbr1->lnum, in dbg_check_key_order()
1266 ubifs_msg(c, "first node at %d:%d\n", zbr1->lnum, zbr1->offs); in dbg_check_key_order()
1268 ubifs_msg(c, "second node at %d:%d\n", zbr2->lnum, zbr2->offs); in dbg_check_key_order()
1436 (znode->zbranch[n].lnum == 0 || in dbg_check_znode()
1442 if (znode->zbranch[n].lnum != 0 && in dbg_check_znode()
1448 if (znode->zbranch[n].lnum == 0 && in dbg_check_znode()
1454 if (znode->zbranch[n].lnum == 0 && in dbg_check_znode()
1642 err, zbr->lnum, zbr->offs); in dbg_walk_index()
1697 ubifs_msg(c, "dump of znode at LEB %d:%d", zbr->lnum, zbr->offs); in dbg_walk_index()
1965 zbr->lnum, zbr->offs, err); in read_add_inode()
2008 zbr->len, zbr->lnum, zbr->offs); in check_leaf()
2019 zbr->lnum, zbr->offs, err); in check_leaf()
2037 type, zbr->lnum, zbr->offs); in check_leaf()
2075 zbr->lnum, zbr->offs, fscki->size); in check_leaf()
2133 ubifs_msg(c, "dump of node at LEB %d:%d", zbr->lnum, zbr->offs); in check_leaf()
2260 zbr->lnum, zbr->offs, err); in check_inodes()
2266 (unsigned long)fscki->inum, zbr->lnum, zbr->offs); in check_inodes()
2474 static int power_cut_emulated(struct ubifs_info *c, int lnum, int write) in power_cut_emulated() argument
2510 if (lnum == UBIFS_SB_LNUM) { in power_cut_emulated()
2515 ubifs_warn(c, "failing in super block LEB %d", lnum); in power_cut_emulated()
2516 } else if (lnum == UBIFS_MST_LNUM || lnum == UBIFS_MST_LNUM + 1) { in power_cut_emulated()
2519 ubifs_warn(c, "failing in master LEB %d", lnum); in power_cut_emulated()
2520 } else if (lnum >= UBIFS_LOG_LNUM && lnum <= c->log_last) { in power_cut_emulated()
2525 ubifs_warn(c, "failing in log LEB %d", lnum); in power_cut_emulated()
2526 } else if (lnum >= c->lpt_first && lnum <= c->lpt_last) { in power_cut_emulated()
2531 ubifs_warn(c, "failing in LPT LEB %d", lnum); in power_cut_emulated()
2532 } else if (lnum >= c->orph_first && lnum <= c->orph_last) { in power_cut_emulated()
2537 ubifs_warn(c, "failing in orphan LEB %d", lnum); in power_cut_emulated()
2538 } else if (lnum == c->ihead_lnum) { in power_cut_emulated()
2541 ubifs_warn(c, "failing in index head LEB %d", lnum); in power_cut_emulated()
2542 } else if (c->jheads && lnum == c->jheads[GCHD].wbuf.lnum) { in power_cut_emulated()
2545 ubifs_warn(c, "failing in GC head LEB %d", lnum); in power_cut_emulated()
2547 !ubifs_search_bud(c, lnum)) { in power_cut_emulated()
2550 ubifs_warn(c, "failing in non-bud LEB %d", lnum); in power_cut_emulated()
2555 ubifs_warn(c, "failing in bud LEB %d commit running", lnum); in power_cut_emulated()
2559 ubifs_warn(c, "failing in bud LEB %d commit not running", lnum); in power_cut_emulated()
2589 int dbg_leb_write(struct ubifs_info *c, int lnum, const void *buf, in dbg_leb_write() argument
2597 failing = power_cut_emulated(c, lnum, 1); in dbg_leb_write()
2601 len, lnum, offs); in dbg_leb_write()
2603 err = ubi_leb_write(c->ubi, lnum, buf, offs, len); in dbg_leb_write()
2611 int dbg_leb_change(struct ubifs_info *c, int lnum, const void *buf, in dbg_leb_change() argument
2618 if (power_cut_emulated(c, lnum, 1)) in dbg_leb_change()
2620 err = ubi_leb_change(c->ubi, lnum, buf, len); in dbg_leb_change()
2623 if (power_cut_emulated(c, lnum, 1)) in dbg_leb_change()
2628 int dbg_leb_unmap(struct ubifs_info *c, int lnum) in dbg_leb_unmap() argument
2634 if (power_cut_emulated(c, lnum, 0)) in dbg_leb_unmap()
2636 err = ubi_leb_unmap(c->ubi, lnum); in dbg_leb_unmap()
2639 if (power_cut_emulated(c, lnum, 0)) in dbg_leb_unmap()
2644 int dbg_leb_map(struct ubifs_info *c, int lnum) in dbg_leb_map() argument
2650 if (power_cut_emulated(c, lnum, 0)) in dbg_leb_map()
2652 err = ubi_leb_map(c->ubi, lnum); in dbg_leb_map()
2655 if (power_cut_emulated(c, lnum, 0)) in dbg_leb_map()