Lines Matching defs:lnum
433 pr_err("\tlnum %u\n", le32_to_cpu(ref->lnum));
546 i, le32_to_cpu(br->lnum), le32_to_cpu(br->offs),
656 c->jheads[i].wbuf.lnum);
659 pr_err("\tbud LEB %d\n", bud->lnum);
662 pr_err("\told bud LEB %d\n", bud->lnum);
665 idx_gc->lnum, idx_gc->unmap);
694 lp->lnum, lp->free, lp->dirty, c->leb_size - spc, spc,
698 lp->lnum, lp->free, lp->dirty, c->leb_size - spc, spc,
747 if (bud->lnum == lp->lnum) {
756 lp->lnum == c->jheads[i].wbuf.lnum) {
766 if (lp->lnum == c->gc_lnum)
773 int lnum, err;
781 for (lnum = c->main_first; lnum < c->leb_cnt; lnum++) {
782 err = ubifs_read_one_lp(c, lnum, &lp);
784 ubifs_err(c, "cannot read lprops for LEB %d", lnum);
831 void ubifs_dump_leb(const struct ubifs_info *c, int lnum)
837 pr_err("(pid %d) start dumping LEB %d\n", current->pid, lnum);
841 ubifs_err(c, "cannot allocate memory for dumping LEB %d", lnum);
845 sleb = ubifs_scan(c, lnum, 0, buf, 0);
851 pr_err("LEB %d has %d nodes ending at %d\n", lnum,
856 pr_err("Dumping node at LEB %d:%d len %d\n", lnum,
861 pr_err("(pid %d) finish dumping LEB %d\n", current->pid, lnum);
882 znode, zbr->lnum, zbr->offs, zbr->len, znode->parent, znode->iip,
895 n, zbr->znode, zbr->lnum, zbr->offs, zbr->len,
900 n, zbr->znode, zbr->lnum, zbr->offs, zbr->len,
917 i, lprops->lnum, lprops->hpos, lprops->free,
936 pr_err("\t%d: free %d dirty %d flags %d lnum %d\n",
937 i, lp->free, lp->dirty, lp->flags, lp->lnum);
1233 ubifs_err(c, "1st entry at %d:%d has key %s", zbr1->lnum,
1245 ubifs_err(c, "2nd entry at %d:%d has key %s", zbr1->lnum,
1269 ubifs_msg(c, "first node at %d:%d\n", zbr1->lnum, zbr1->offs);
1271 ubifs_msg(c, "second node at %d:%d\n", zbr2->lnum, zbr2->offs);
1439 (znode->zbranch[n].lnum == 0 ||
1445 if (znode->zbranch[n].lnum != 0 &&
1451 if (znode->zbranch[n].lnum == 0 &&
1457 if (znode->zbranch[n].lnum == 0 &&
1645 err, zbr->lnum, zbr->offs);
1700 ubifs_msg(c, "dump of znode at LEB %d:%d", zbr->lnum, zbr->offs);
1973 zbr->lnum, zbr->offs, err);
2016 zbr->len, zbr->lnum, zbr->offs);
2027 zbr->lnum, zbr->offs, err);
2045 type, zbr->lnum, zbr->offs);
2083 zbr->lnum, zbr->offs, fscki->size);
2141 ubifs_msg(c, "dump of node at LEB %d:%d", zbr->lnum, zbr->offs);
2268 zbr->lnum, zbr->offs, err);
2274 (unsigned long)fscki->inum, zbr->lnum, zbr->offs);
2482 static int power_cut_emulated(struct ubifs_info *c, int lnum, int write)
2518 if (lnum == UBIFS_SB_LNUM) {
2523 ubifs_warn(c, "failing in super block LEB %d", lnum);
2524 } else if (lnum == UBIFS_MST_LNUM || lnum == UBIFS_MST_LNUM + 1) {
2527 ubifs_warn(c, "failing in master LEB %d", lnum);
2528 } else if (lnum >= UBIFS_LOG_LNUM && lnum <= c->log_last) {
2533 ubifs_warn(c, "failing in log LEB %d", lnum);
2534 } else if (lnum >= c->lpt_first && lnum <= c->lpt_last) {
2539 ubifs_warn(c, "failing in LPT LEB %d", lnum);
2540 } else if (lnum >= c->orph_first && lnum <= c->orph_last) {
2545 ubifs_warn(c, "failing in orphan LEB %d", lnum);
2546 } else if (lnum == c->ihead_lnum) {
2549 ubifs_warn(c, "failing in index head LEB %d", lnum);
2550 } else if (c->jheads && lnum == c->jheads[GCHD].wbuf.lnum) {
2553 ubifs_warn(c, "failing in GC head LEB %d", lnum);
2555 !ubifs_search_bud(c, lnum)) {
2558 ubifs_warn(c, "failing in non-bud LEB %d", lnum);
2563 ubifs_warn(c, "failing in bud LEB %d commit running", lnum);
2567 ubifs_warn(c, "failing in bud LEB %d commit not running", lnum);
2597 int dbg_leb_write(struct ubifs_info *c, int lnum, const void *buf,
2605 failing = power_cut_emulated(c, lnum, 1);
2609 len, lnum, offs);
2611 err = ubi_leb_write(c->ubi, lnum, buf, offs, len);
2619 int dbg_leb_change(struct ubifs_info *c, int lnum, const void *buf,
2626 if (power_cut_emulated(c, lnum, 1))
2628 err = ubi_leb_change(c->ubi, lnum, buf, len);
2631 if (power_cut_emulated(c, lnum, 1))
2636 int dbg_leb_unmap(struct ubifs_info *c, int lnum)
2642 if (power_cut_emulated(c, lnum, 0))
2644 err = ubi_leb_unmap(c->ubi, lnum);
2647 if (power_cut_emulated(c, lnum, 0))
2652 int dbg_leb_map(struct ubifs_info *c, int lnum)
2658 if (power_cut_emulated(c, lnum, 0))
2660 err = ubi_leb_map(c->ubi, lnum);
2663 if (power_cut_emulated(c, lnum, 0))