Lines Matching refs:sleb
545 struct ubifs_scan_leb *sleb; in replay_bud() local
558 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); in replay_bud()
560 sleb = ubifs_scan(c, lnum, offs, c->sbuf, 0); in replay_bud()
561 if (IS_ERR(sleb)) in replay_bud()
562 return PTR_ERR(sleb); in replay_bud()
586 list_for_each_entry(snod, &sleb->nodes, list) { in replay_bud()
675 ubifs_assert(sleb->endpt - offs >= used); in replay_bud()
676 ubifs_assert(sleb->endpt % c->min_io_size == 0); in replay_bud()
678 b->dirty = sleb->endpt - offs - used; in replay_bud()
679 b->free = c->leb_size - sleb->endpt; in replay_bud()
684 ubifs_scan_destroy(sleb); in replay_bud()
690 ubifs_scan_destroy(sleb); in replay_bud()
829 struct ubifs_scan_leb *sleb; in replay_log_leb() local
834 sleb = ubifs_scan(c, lnum, offs, sbuf, c->need_recovery); in replay_log_leb()
835 if (IS_ERR(sleb)) { in replay_log_leb()
836 if (PTR_ERR(sleb) != -EUCLEAN || !c->need_recovery) in replay_log_leb()
837 return PTR_ERR(sleb); in replay_log_leb()
843 sleb = ubifs_recover_log_leb(c, lnum, offs, sbuf); in replay_log_leb()
844 if (IS_ERR(sleb)) in replay_log_leb()
845 return PTR_ERR(sleb); in replay_log_leb()
848 if (sleb->nodes_cnt == 0) { in replay_log_leb()
853 node = sleb->buf; in replay_log_leb()
854 snod = list_entry(sleb->nodes.next, struct ubifs_scan_node, list); in replay_log_leb()
898 list_for_each_entry(snod, &sleb->nodes, list) { in replay_log_leb()
947 if (sleb->endpt || c->lhead_offs >= c->leb_size) { in replay_log_leb()
949 c->lhead_offs = sleb->endpt; in replay_log_leb()
952 err = !sleb->endpt; in replay_log_leb()
954 ubifs_scan_destroy(sleb); in replay_log_leb()
961 ubifs_scan_destroy(sleb); in replay_log_leb()