Lines Matching refs:sleb

630 static int do_kill_orphans(struct ubifs_info *c, struct ubifs_scan_leb *sleb,  in do_kill_orphans()  argument
645 list_for_each_entry(snod, &sleb->nodes, list) { in do_kill_orphans()
648 snod->type, sleb->lnum, snod->offs); in do_kill_orphans()
677 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans()
683 dbg_rcvry("out of date LEB %d", sleb->lnum); in do_kill_orphans()
727 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans()
778 struct ubifs_scan_leb *sleb; in kill_orphans() local
781 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in kill_orphans()
782 if (IS_ERR(sleb)) { in kill_orphans()
783 if (PTR_ERR(sleb) == -EUCLEAN) in kill_orphans()
784 sleb = ubifs_recover_leb(c, lnum, 0, in kill_orphans()
786 if (IS_ERR(sleb)) { in kill_orphans()
787 err = PTR_ERR(sleb); in kill_orphans()
791 err = do_kill_orphans(c, sleb, &last_cmt_no, &outofdate, in kill_orphans()
794 ubifs_scan_destroy(sleb); in kill_orphans()
797 if (sleb->endpt) { in kill_orphans()
799 c->ohead_offs = sleb->endpt; in kill_orphans()
801 ubifs_scan_destroy(sleb); in kill_orphans()
952 static int dbg_read_orphans(struct check_info *ci, struct ubifs_scan_leb *sleb) in dbg_read_orphans() argument
959 list_for_each_entry(snod, &sleb->nodes, list) { in dbg_read_orphans()
991 struct ubifs_scan_leb *sleb; in dbg_scan_orphans() local
993 sleb = ubifs_scan(c, lnum, 0, buf, 0); in dbg_scan_orphans()
994 if (IS_ERR(sleb)) { in dbg_scan_orphans()
995 err = PTR_ERR(sleb); in dbg_scan_orphans()
999 err = dbg_read_orphans(ci, sleb); in dbg_scan_orphans()
1000 ubifs_scan_destroy(sleb); in dbg_scan_orphans()