Lines Matching refs:sleb
591 static int authenticate_sleb(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in authenticate_sleb() argument
602 return sleb->nodes_cnt; in authenticate_sleb()
604 list_for_each_entry(snod, &sleb->nodes, list) { in authenticate_sleb()
643 n_not_auth, sleb->lnum); in authenticate_sleb()
647 n_not_auth, sleb->lnum); in authenticate_sleb()
671 struct ubifs_scan_leb *sleb; in replay_bud() local
684 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); in replay_bud()
686 sleb = ubifs_scan(c, lnum, offs, c->sbuf, 0); in replay_bud()
687 if (IS_ERR(sleb)) in replay_bud()
688 return PTR_ERR(sleb); in replay_bud()
690 n_nodes = authenticate_sleb(c, sleb, b->bud->log_hash, is_last); in replay_bud()
721 list_for_each_entry(snod, &sleb->nodes, list) { in replay_bud()
819 ubifs_assert(c, sleb->endpt - offs >= used); in replay_bud()
820 ubifs_assert(c, sleb->endpt % c->min_io_size == 0); in replay_bud()
822 b->dirty = sleb->endpt - offs - used; in replay_bud()
823 b->free = c->leb_size - sleb->endpt; in replay_bud()
828 ubifs_scan_destroy(sleb); in replay_bud()
834 ubifs_scan_destroy(sleb); in replay_bud()
985 struct ubifs_scan_leb *sleb; in replay_log_leb() local
990 sleb = ubifs_scan(c, lnum, offs, sbuf, c->need_recovery); in replay_log_leb()
991 if (IS_ERR(sleb)) { in replay_log_leb()
992 if (PTR_ERR(sleb) != -EUCLEAN || !c->need_recovery) in replay_log_leb()
993 return PTR_ERR(sleb); in replay_log_leb()
999 sleb = ubifs_recover_log_leb(c, lnum, offs, sbuf); in replay_log_leb()
1000 if (IS_ERR(sleb)) in replay_log_leb()
1001 return PTR_ERR(sleb); in replay_log_leb()
1004 if (sleb->nodes_cnt == 0) { in replay_log_leb()
1009 node = sleb->buf; in replay_log_leb()
1010 snod = list_entry(sleb->nodes.next, struct ubifs_scan_node, list); in replay_log_leb()
1062 list_for_each_entry(snod, &sleb->nodes, list) { in replay_log_leb()
1116 if (sleb->endpt || c->lhead_offs >= c->leb_size) { in replay_log_leb()
1118 c->lhead_offs = sleb->endpt; in replay_log_leb()
1121 err = !sleb->endpt; in replay_log_leb()
1123 ubifs_scan_destroy(sleb); in replay_log_leb()
1130 ubifs_scan_destroy(sleb); in replay_log_leb()