Lines Matching refs:sleb
538 struct ubifs_scan_leb *sleb; in replay_bud() local
551 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); in replay_bud()
553 sleb = ubifs_scan(c, lnum, offs, c->sbuf, 0); in replay_bud()
554 if (IS_ERR(sleb)) in replay_bud()
555 return PTR_ERR(sleb); in replay_bud()
579 list_for_each_entry(snod, &sleb->nodes, list) { in replay_bud()
668 ubifs_assert(sleb->endpt - offs >= used); in replay_bud()
669 ubifs_assert(sleb->endpt % c->min_io_size == 0); in replay_bud()
671 b->dirty = sleb->endpt - offs - used; in replay_bud()
672 b->free = c->leb_size - sleb->endpt; in replay_bud()
677 ubifs_scan_destroy(sleb); in replay_bud()
683 ubifs_scan_destroy(sleb); in replay_bud()
822 struct ubifs_scan_leb *sleb; in replay_log_leb() local
827 sleb = ubifs_scan(c, lnum, offs, sbuf, c->need_recovery); in replay_log_leb()
828 if (IS_ERR(sleb)) { in replay_log_leb()
829 if (PTR_ERR(sleb) != -EUCLEAN || !c->need_recovery) in replay_log_leb()
830 return PTR_ERR(sleb); in replay_log_leb()
836 sleb = ubifs_recover_log_leb(c, lnum, offs, sbuf); in replay_log_leb()
837 if (IS_ERR(sleb)) in replay_log_leb()
838 return PTR_ERR(sleb); in replay_log_leb()
841 if (sleb->nodes_cnt == 0) { in replay_log_leb()
846 node = sleb->buf; in replay_log_leb()
847 snod = list_entry(sleb->nodes.next, struct ubifs_scan_node, list); in replay_log_leb()
891 list_for_each_entry(snod, &sleb->nodes, list) { in replay_log_leb()
940 if (sleb->endpt || c->lhead_offs >= c->leb_size) { in replay_log_leb()
942 c->lhead_offs = sleb->endpt; in replay_log_leb()
945 err = !sleb->endpt; in replay_log_leb()
947 ubifs_scan_destroy(sleb); in replay_log_leb()
954 ubifs_scan_destroy(sleb); in replay_log_leb()