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