Lines Matching defs:sleb

578  * @sleb: the scan LEB to authenticate
591 static int authenticate_sleb(struct ubifs_info *c, struct ubifs_scan_leb *sleb,
602 return sleb->nodes_cnt;
604 list_for_each_entry(snod, &sleb->nodes, list) {
643 n_not_auth, sleb->lnum);
647 n_not_auth, sleb->lnum);
671 struct ubifs_scan_leb *sleb;
684 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead);
686 sleb = ubifs_scan(c, lnum, offs, c->sbuf, 0);
687 if (IS_ERR(sleb))
688 return PTR_ERR(sleb);
690 n_nodes = authenticate_sleb(c, sleb, b->bud->log_hash, is_last);
710 * sleb->endpt', and the space in the 'lnum' LEB between 'offs' and
711 * 'sleb->endpt' is used by bud data. We have to correctly calculate
721 list_for_each_entry(snod, &sleb->nodes, list) {
819 ubifs_assert(c, sleb->endpt - offs >= used);
820 ubifs_assert(c, sleb->endpt % c->min_io_size == 0);
822 b->dirty = sleb->endpt - offs - used;
823 b->free = c->leb_size - sleb->endpt;
828 ubifs_scan_destroy(sleb);
834 ubifs_scan_destroy(sleb);
985 struct ubifs_scan_leb *sleb;
990 sleb = ubifs_scan(c, lnum, offs, sbuf, c->need_recovery);
991 if (IS_ERR(sleb)) {
992 if (PTR_ERR(sleb) != -EUCLEAN || !c->need_recovery)
993 return PTR_ERR(sleb);
999 sleb = ubifs_recover_log_leb(c, lnum, offs, sbuf);
1000 if (IS_ERR(sleb))
1001 return PTR_ERR(sleb);
1004 if (sleb->nodes_cnt == 0) {
1009 node = sleb->buf;
1010 snod = list_entry(sleb->nodes.next, struct ubifs_scan_node, list);
1062 list_for_each_entry(snod, &sleb->nodes, list) {
1116 if (sleb->endpt || c->lhead_offs >= c->leb_size) {
1118 c->lhead_offs = sleb->endpt;
1121 err = !sleb->endpt;
1123 ubifs_scan_destroy(sleb);
1130 ubifs_scan_destroy(sleb);