Lines Matching refs:sleb

549 static int do_kill_orphans(struct ubifs_info *c, struct ubifs_scan_leb *sleb,  in do_kill_orphans()  argument
559 list_for_each_entry(snod, &sleb->nodes, list) { in do_kill_orphans()
562 snod->type, sleb->lnum, snod->offs); in do_kill_orphans()
589 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans()
593 dbg_rcvry("out of date LEB %d", sleb->lnum); in do_kill_orphans()
617 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans()
660 struct ubifs_scan_leb *sleb; in kill_orphans() local
663 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in kill_orphans()
664 if (IS_ERR(sleb)) { in kill_orphans()
665 if (PTR_ERR(sleb) == -EUCLEAN) in kill_orphans()
666 sleb = ubifs_recover_leb(c, lnum, 0, in kill_orphans()
668 if (IS_ERR(sleb)) { in kill_orphans()
669 err = PTR_ERR(sleb); in kill_orphans()
673 err = do_kill_orphans(c, sleb, &last_cmt_no, &outofdate, in kill_orphans()
676 ubifs_scan_destroy(sleb); in kill_orphans()
679 if (sleb->endpt) { in kill_orphans()
681 c->ohead_offs = sleb->endpt; in kill_orphans()
683 ubifs_scan_destroy(sleb); in kill_orphans()
845 static int dbg_read_orphans(struct check_info *ci, struct ubifs_scan_leb *sleb) in dbg_read_orphans() argument
852 list_for_each_entry(snod, &sleb->nodes, list) { in dbg_read_orphans()
884 struct ubifs_scan_leb *sleb; in dbg_scan_orphans() local
886 sleb = ubifs_scan(c, lnum, 0, buf, 0); in dbg_scan_orphans()
887 if (IS_ERR(sleb)) { in dbg_scan_orphans()
888 err = PTR_ERR(sleb); in dbg_scan_orphans()
892 err = dbg_read_orphans(ci, sleb); in dbg_scan_orphans()
893 ubifs_scan_destroy(sleb); in dbg_scan_orphans()