Lines Matching refs:sleb
551 static int do_kill_orphans(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in do_kill_orphans() argument
561 list_for_each_entry(snod, &sleb->nodes, list) { in do_kill_orphans()
564 snod->type, sleb->lnum, snod->offs); in do_kill_orphans()
591 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans()
595 dbg_rcvry("out of date LEB %d", sleb->lnum); in do_kill_orphans()
619 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans()
662 struct ubifs_scan_leb *sleb; in kill_orphans() local
665 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in kill_orphans()
666 if (IS_ERR(sleb)) { in kill_orphans()
667 if (PTR_ERR(sleb) == -EUCLEAN) in kill_orphans()
668 sleb = ubifs_recover_leb(c, lnum, 0, in kill_orphans()
670 if (IS_ERR(sleb)) { in kill_orphans()
671 err = PTR_ERR(sleb); in kill_orphans()
675 err = do_kill_orphans(c, sleb, &last_cmt_no, &outofdate, in kill_orphans()
678 ubifs_scan_destroy(sleb); in kill_orphans()
681 if (sleb->endpt) { in kill_orphans()
683 c->ohead_offs = sleb->endpt; in kill_orphans()
685 ubifs_scan_destroy(sleb); in kill_orphans()
847 static int dbg_read_orphans(struct check_info *ci, struct ubifs_scan_leb *sleb) in dbg_read_orphans() argument
854 list_for_each_entry(snod, &sleb->nodes, list) { in dbg_read_orphans()
886 struct ubifs_scan_leb *sleb; in dbg_scan_orphans() local
888 sleb = ubifs_scan(c, lnum, 0, buf, 0); in dbg_scan_orphans()
889 if (IS_ERR(sleb)) { in dbg_scan_orphans()
890 err = PTR_ERR(sleb); in dbg_scan_orphans()
894 err = dbg_read_orphans(ci, sleb); in dbg_scan_orphans()
895 ubifs_scan_destroy(sleb); in dbg_scan_orphans()