Lines Matching refs:sleb

539 	struct ubifs_scan_leb *sleb;  in replay_bud()  local
552 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); in replay_bud()
554 sleb = ubifs_scan(c, lnum, offs, c->sbuf, 0); in replay_bud()
555 if (IS_ERR(sleb)) in replay_bud()
556 return PTR_ERR(sleb); in replay_bud()
580 list_for_each_entry(snod, &sleb->nodes, list) { in replay_bud()
669 ubifs_assert(sleb->endpt - offs >= used); in replay_bud()
670 ubifs_assert(sleb->endpt % c->min_io_size == 0); in replay_bud()
672 b->dirty = sleb->endpt - offs - used; in replay_bud()
673 b->free = c->leb_size - sleb->endpt; in replay_bud()
678 ubifs_scan_destroy(sleb); in replay_bud()
684 ubifs_scan_destroy(sleb); in replay_bud()
823 struct ubifs_scan_leb *sleb; in replay_log_leb() local
828 sleb = ubifs_scan(c, lnum, offs, sbuf, c->need_recovery); in replay_log_leb()
829 if (IS_ERR(sleb)) { in replay_log_leb()
830 if (PTR_ERR(sleb) != -EUCLEAN || !c->need_recovery) in replay_log_leb()
831 return PTR_ERR(sleb); in replay_log_leb()
837 sleb = ubifs_recover_log_leb(c, lnum, offs, sbuf); in replay_log_leb()
838 if (IS_ERR(sleb)) in replay_log_leb()
839 return PTR_ERR(sleb); in replay_log_leb()
842 if (sleb->nodes_cnt == 0) { in replay_log_leb()
847 node = sleb->buf; in replay_log_leb()
848 snod = list_entry(sleb->nodes.next, struct ubifs_scan_node, list); in replay_log_leb()
892 list_for_each_entry(snod, &sleb->nodes, list) { in replay_log_leb()
941 if (sleb->endpt || c->lhead_offs >= c->leb_size) { in replay_log_leb()
943 c->lhead_offs = sleb->endpt; in replay_log_leb()
946 err = !sleb->endpt; in replay_log_leb()
948 ubifs_scan_destroy(sleb); in replay_log_leb()
955 ubifs_scan_destroy(sleb); in replay_log_leb()