Lines Matching refs:sleb
549 * @sleb: scanned LEB
558 static int do_kill_orphans(struct ubifs_info *c, struct ubifs_scan_leb *sleb,
568 list_for_each_entry(snod, &sleb->nodes, list) {
571 "%d:%d", snod->type, sleb->lnum, snod->offs);
599 cmt_no, sleb->lnum, snod->offs);
603 dbg_rcvry("out of date LEB %d", sleb->lnum);
627 cmt_no, sleb->lnum, snod->offs);
670 struct ubifs_scan_leb *sleb;
673 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1);
674 if (IS_ERR(sleb)) {
675 if (PTR_ERR(sleb) == -EUCLEAN)
676 sleb = ubifs_recover_leb(c, lnum, 0, c->sbuf, 0);
677 if (IS_ERR(sleb)) {
678 err = PTR_ERR(sleb);
682 err = do_kill_orphans(c, sleb, &last_cmt_no, &outofdate,
685 ubifs_scan_destroy(sleb);
688 if (sleb->endpt) {
690 c->ohead_offs = sleb->endpt;
692 ubifs_scan_destroy(sleb);
869 static int dbg_read_orphans(struct check_info *ci, struct ubifs_scan_leb *sleb)
876 list_for_each_entry(snod, &sleb->nodes, list) {
901 struct ubifs_scan_leb *sleb;
903 sleb = ubifs_scan(c, lnum, 0, c->dbg->buf, 0);
904 if (IS_ERR(sleb)) {
905 err = PTR_ERR(sleb);
909 err = dbg_read_orphans(ci, sleb);
910 ubifs_scan_destroy(sleb);