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);
883 znode, zbr->lnum, zbr->offs, zbr->len, znode->parent, znode->iip,
896 n, zbr->znode, zbr->lnum, zbr->offs, zbr->len,
901 n, zbr->znode, zbr->lnum, zbr->offs, zbr->len,
918 i, lprops->lnum, lprops->hpos, lprops->free,
937 pr_err("\t%d: free %d dirty %d flags %d lnum %d\n",
938 i, lp->free, lp->dirty, lp->flags, lp->lnum);
1230 ubifs_err(c, "1st entry at %d:%d has key %s", zbr1->lnum,
1242 ubifs_err(c, "2nd entry at %d:%d has key %s", zbr1->lnum,
1266 ubifs_msg(c, "first node at %d:%d\n", zbr1->lnum, zbr1->offs);
1268 ubifs_msg(c, "second node at %d:%d\n", zbr2->lnum, zbr2->offs);
1436 (znode->zbranch[n].lnum == 0 ||
1442 if (znode->zbranch[n].lnum != 0 &&
1448 if (znode->zbranch[n].lnum == 0 &&
1454 if (znode->zbranch[n].lnum == 0 &&
1642 err, zbr->lnum, zbr->offs);
1697 ubifs_msg(c, "dump of znode at LEB %d:%d", zbr->lnum, zbr->offs);
1970 zbr->lnum, zbr->offs, err);
2013 zbr->len, zbr->lnum, zbr->offs);
2024 zbr->lnum, zbr->offs, err);
2042 type, zbr->lnum, zbr->offs);
2080 zbr->lnum, zbr->offs, fscki->size);
2138 ubifs_msg(c, "dump of node at LEB %d:%d", zbr->lnum, zbr->offs);
2265 zbr->lnum, zbr->offs, err);
2271 (unsigned long)fscki->inum, zbr->lnum, zbr->offs);
2479 static int power_cut_emulated(struct ubifs_info *c, int lnum, int write)
2515 if (lnum == UBIFS_SB_LNUM) {
2520 ubifs_warn(c, "failing in super block LEB %d", lnum);
2521 } else if (lnum == UBIFS_MST_LNUM || lnum == UBIFS_MST_LNUM + 1) {
2524 ubifs_warn(c, "failing in master LEB %d", lnum);
2525 } else if (lnum >= UBIFS_LOG_LNUM && lnum <= c->log_last) {
2530 ubifs_warn(c, "failing in log LEB %d", lnum);
2531 } else if (lnum >= c->lpt_first && lnum <= c->lpt_last) {
2536 ubifs_warn(c, "failing in LPT LEB %d", lnum);
2537 } else if (lnum >= c->orph_first && lnum <= c->orph_last) {
2542 ubifs_warn(c, "failing in orphan LEB %d", lnum);
2543 } else if (lnum == c->ihead_lnum) {
2546 ubifs_warn(c, "failing in index head LEB %d", lnum);
2547 } else if (c->jheads && lnum == c->jheads[GCHD].wbuf.lnum) {
2550 ubifs_warn(c, "failing in GC head LEB %d", lnum);
2552 !ubifs_search_bud(c, lnum)) {
2555 ubifs_warn(c, "failing in non-bud LEB %d", lnum);
2560 ubifs_warn(c, "failing in bud LEB %d commit running", lnum);
2564 ubifs_warn(c, "failing in bud LEB %d commit not running", lnum);
2594 int dbg_leb_write(struct ubifs_info *c, int lnum, const void *buf,
2602 failing = power_cut_emulated(c, lnum, 1);
2606 len, lnum, offs);
2608 err = ubi_leb_write(c->ubi, lnum, buf, offs, len);
2616 int dbg_leb_change(struct ubifs_info *c, int lnum, const void *buf,
2623 if (power_cut_emulated(c, lnum, 1))
2625 err = ubi_leb_change(c->ubi, lnum, buf, len);
2628 if (power_cut_emulated(c, lnum, 1))
2633 int dbg_leb_unmap(struct ubifs_info *c, int lnum)
2639 if (power_cut_emulated(c, lnum, 0))
2641 err = ubi_leb_unmap(c->ubi, lnum);
2644 if (power_cut_emulated(c, lnum, 0))
2649 int dbg_leb_map(struct ubifs_info *c, int lnum)
2655 if (power_cut_emulated(c, lnum, 0))
2657 err = ubi_leb_map(c->ubi, lnum);
2660 if (power_cut_emulated(c, lnum, 0))