Home
last modified time | relevance | path

Searched refs:sleb (Results 1 – 11 of 11) sorted by relevance

/u-boot/fs/ubifs/
A Dscan.c140 if (!sleb) in ubifs_start_scan()
143 sleb->lnum = lnum; in ubifs_start_scan()
145 sleb->buf = sbuf; in ubifs_start_scan()
151 kfree(sleb); in ubifs_start_scan()
159 return sleb; in ubifs_start_scan()
221 sleb->nodes_cnt += 1; in ubifs_add_snod()
269 if (IS_ERR(sleb)) in ubifs_scan()
270 return sleb; in ubifs_scan()
340 return sleb; in ubifs_scan()
366 head = &sleb->nodes; in ubifs_scan_destroy()
[all …]
A Dreplay.c556 if (IS_ERR(sleb)) in replay_bud()
557 return PTR_ERR(sleb); in replay_bud()
679 ubifs_scan_destroy(sleb); in replay_bud()
685 ubifs_scan_destroy(sleb); in replay_bud()
830 if (IS_ERR(sleb)) { in replay_log_leb()
832 return PTR_ERR(sleb); in replay_log_leb()
839 if (IS_ERR(sleb)) in replay_log_leb()
840 return PTR_ERR(sleb); in replay_log_leb()
848 node = sleb->buf; in replay_log_leb()
947 err = !sleb->endpt; in replay_log_leb()
[all …]
A Drecovery.c586 sleb->lnum, snod->offs); in drop_last_group()
590 sleb->nodes_cnt -= 1; in drop_last_group()
615 sleb->nodes_cnt -= 1; in drop_last_node()
644 if (IS_ERR(sleb)) in ubifs_recover_leb()
645 return sleb; in ubifs_recover_leb()
786 return sleb; in ubifs_recover_leb()
797 ubifs_scan_destroy(sleb); in ubifs_recover_leb()
883 if (IS_ERR(sleb)) in ubifs_recover_log_leb()
884 return sleb; in ubifs_recover_log_leb()
885 if (sleb->nodes_cnt) { in ubifs_recover_log_leb()
[all …]
A Dorphan.c662 struct ubifs_scan_leb *sleb; in kill_orphans() local
666 if (IS_ERR(sleb)) { in kill_orphans()
670 if (IS_ERR(sleb)) { in kill_orphans()
671 err = PTR_ERR(sleb); in kill_orphans()
678 ubifs_scan_destroy(sleb); in kill_orphans()
681 if (sleb->endpt) { in kill_orphans()
685 ubifs_scan_destroy(sleb); in kill_orphans()
886 struct ubifs_scan_leb *sleb; in dbg_scan_orphans() local
889 if (IS_ERR(sleb)) { in dbg_scan_orphans()
890 err = PTR_ERR(sleb); in dbg_scan_orphans()
[all …]
A Dgc.c357 err = sort_nodes(c, sleb, &nondata, &min); in move_nodes()
376 err = move_node(c, sleb, snod, wbuf); in move_nodes()
401 err = move_node(c, sleb, snod, wbuf); in move_nodes()
421 list_splice_tail(&nondata, &sleb->nodes); in move_nodes()
463 struct ubifs_scan_leb *sleb; in ubifs_garbage_collect_leb() local
508 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 0); in ubifs_garbage_collect_leb()
509 if (IS_ERR(sleb)) in ubifs_garbage_collect_leb()
510 return PTR_ERR(sleb); in ubifs_garbage_collect_leb()
512 ubifs_assert(!list_empty(&sleb->nodes)); in ubifs_garbage_collect_leb()
557 err = move_nodes(c, sleb); in ubifs_garbage_collect_leb()
[all …]
A Dmaster.c33 struct ubifs_scan_leb *sleb; in scan_for_master() local
40 if (IS_ERR(sleb)) in scan_for_master()
41 return PTR_ERR(sleb); in scan_for_master()
42 nodes_cnt = sleb->nodes_cnt; in scan_for_master()
51 ubifs_scan_destroy(sleb); in scan_for_master()
56 if (IS_ERR(sleb)) in scan_for_master()
57 return PTR_ERR(sleb); in scan_for_master()
60 if (!sleb->nodes_cnt) in scan_for_master()
72 ubifs_scan_destroy(sleb); in scan_for_master()
76 ubifs_scan_destroy(sleb); in scan_for_master()
[all …]
A Dlog.c628 struct ubifs_scan_leb *sleb; in ubifs_consolidate_log() local
642 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 0); in ubifs_consolidate_log()
643 if (IS_ERR(sleb)) { in ubifs_consolidate_log()
644 err = PTR_ERR(sleb); in ubifs_consolidate_log()
647 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_consolidate_log()
675 ubifs_scan_destroy(sleb); in ubifs_consolidate_log()
709 ubifs_scan_destroy(sleb); in ubifs_consolidate_log()
A Dlprops.c1026 struct ubifs_scan_leb *sleb; in scan_check_cb() local
1109 sleb = ubifs_scan(c, lnum, 0, buf, 0); in scan_check_cb()
1110 if (IS_ERR(sleb)) { in scan_check_cb()
1111 ret = PTR_ERR(sleb); in scan_check_cb()
1120 list_for_each_entry(snod, &sleb->nodes, list) { in scan_check_cb()
1150 free = c->leb_size - sleb->endpt; in scan_check_cb()
1151 dirty = sleb->endpt - used; in scan_check_cb()
1232 ubifs_scan_destroy(sleb); in scan_check_cb()
1241 ubifs_scan_destroy(sleb); in scan_check_cb()
A Ddebug.c806 const struct ubifs_scan_leb *sleb, int offs) in ubifs_dump_sleb() argument
811 current->pid, sleb->lnum, offs); in ubifs_dump_sleb()
813 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_sleb()
816 sleb->lnum, snod->offs, snod->len); in ubifs_dump_sleb()
823 struct ubifs_scan_leb *sleb; in ubifs_dump_leb() local
835 sleb = ubifs_scan(c, lnum, 0, buf, 0); in ubifs_dump_leb()
836 if (IS_ERR(sleb)) { in ubifs_dump_leb()
837 ubifs_err(c, "scan error %d", (int)PTR_ERR(sleb)); in ubifs_dump_leb()
842 sleb->nodes_cnt, sleb->endpt); in ubifs_dump_leb()
844 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_leb()
[all …]
A Ddebug.h319 const struct ubifs_scan_leb *sleb, int offs);
A Dubifs.h2116 void ubifs_scan_destroy(struct ubifs_scan_leb *sleb);
2121 void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,
2123 int ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,

Completed in 29 milliseconds