/linux/fs/ubifs/ |
A D | scan.c | 134 if (!sleb) in ubifs_start_scan() 137 sleb->lnum = lnum; in ubifs_start_scan() 139 sleb->buf = sbuf; in ubifs_start_scan() 145 kfree(sleb); in ubifs_start_scan() 153 return sleb; in ubifs_start_scan() 214 sleb->nodes_cnt += 1; in ubifs_add_snod() 262 if (IS_ERR(sleb)) in ubifs_scan() 263 return sleb; in ubifs_scan() 333 return sleb; in ubifs_scan() 359 head = &sleb->nodes; in ubifs_scan_destroy() [all …]
|
A D | replay.c | 602 return sleb->nodes_cnt; in authenticate_sleb() 687 if (IS_ERR(sleb)) in replay_bud() 688 return PTR_ERR(sleb); in replay_bud() 828 ubifs_scan_destroy(sleb); in replay_bud() 834 ubifs_scan_destroy(sleb); in replay_bud() 991 if (IS_ERR(sleb)) { in replay_log_leb() 993 return PTR_ERR(sleb); in replay_log_leb() 1000 if (IS_ERR(sleb)) in replay_log_leb() 1001 return PTR_ERR(sleb); in replay_log_leb() 1009 node = sleb->buf; in replay_log_leb() [all …]
|
A D | recovery.c | 575 sleb->lnum, snod->offs); in drop_last_group() 579 sleb->nodes_cnt -= 1; in drop_last_group() 604 sleb->nodes_cnt -= 1; in drop_last_node() 633 if (IS_ERR(sleb)) in ubifs_recover_leb() 634 return sleb; in ubifs_recover_leb() 775 return sleb; in ubifs_recover_leb() 786 ubifs_scan_destroy(sleb); in ubifs_recover_leb() 872 if (IS_ERR(sleb)) in ubifs_recover_log_leb() 873 return sleb; in ubifs_recover_log_leb() 874 if (sleb->nodes_cnt) { in ubifs_recover_log_leb() [all …]
|
A D | gc.c | 347 err = sort_nodes(c, sleb, &nondata, &min); in move_nodes() 372 err = move_node(c, sleb, snod, wbuf); in move_nodes() 404 err = move_node(c, sleb, snod, wbuf); in move_nodes() 451 list_splice_tail(&nondata, &sleb->nodes); in move_nodes() 493 struct ubifs_scan_leb *sleb; in ubifs_garbage_collect_leb() local 538 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 0); in ubifs_garbage_collect_leb() 539 if (IS_ERR(sleb)) in ubifs_garbage_collect_leb() 540 return PTR_ERR(sleb); in ubifs_garbage_collect_leb() 542 ubifs_assert(c, !list_empty(&sleb->nodes)); in ubifs_garbage_collect_leb() 587 err = move_nodes(c, sleb); in ubifs_garbage_collect_leb() [all …]
|
A D | orphan.c | 778 struct ubifs_scan_leb *sleb; in kill_orphans() local 782 if (IS_ERR(sleb)) { in kill_orphans() 786 if (IS_ERR(sleb)) { in kill_orphans() 787 err = PTR_ERR(sleb); in kill_orphans() 794 ubifs_scan_destroy(sleb); in kill_orphans() 797 if (sleb->endpt) { in kill_orphans() 801 ubifs_scan_destroy(sleb); in kill_orphans() 991 struct ubifs_scan_leb *sleb; in dbg_scan_orphans() local 994 if (IS_ERR(sleb)) { in dbg_scan_orphans() 995 err = PTR_ERR(sleb); in dbg_scan_orphans() [all …]
|
A D | master.c | 92 struct ubifs_scan_leb *sleb; in scan_for_master() local 99 if (IS_ERR(sleb)) in scan_for_master() 100 return PTR_ERR(sleb); in scan_for_master() 101 nodes_cnt = sleb->nodes_cnt; in scan_for_master() 110 ubifs_scan_destroy(sleb); in scan_for_master() 115 if (IS_ERR(sleb)) in scan_for_master() 116 return PTR_ERR(sleb); in scan_for_master() 119 if (!sleb->nodes_cnt) in scan_for_master() 130 ubifs_scan_destroy(sleb); in scan_for_master() 154 ubifs_scan_destroy(sleb); in scan_for_master() [all …]
|
A D | auth.c | 195 struct ubifs_scan_leb *sleb; in ubifs_sb_verify_signature() local 199 sleb = ubifs_scan(c, UBIFS_SB_LNUM, UBIFS_SB_NODE_SZ, c->sbuf, 0); in ubifs_sb_verify_signature() 200 if (IS_ERR(sleb)) { in ubifs_sb_verify_signature() 201 err = PTR_ERR(sleb); in ubifs_sb_verify_signature() 205 if (sleb->nodes_cnt == 0) { in ubifs_sb_verify_signature() 211 snod = list_first_entry(&sleb->nodes, struct ubifs_scan_node, list); in ubifs_sb_verify_signature() 245 ubifs_scan_destroy(sleb); in ubifs_sb_verify_signature()
|
A D | log.c | 644 struct ubifs_scan_leb *sleb; in ubifs_consolidate_log() local 658 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 0); in ubifs_consolidate_log() 659 if (IS_ERR(sleb)) { in ubifs_consolidate_log() 660 err = PTR_ERR(sleb); in ubifs_consolidate_log() 663 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_consolidate_log() 691 ubifs_scan_destroy(sleb); in ubifs_consolidate_log() 725 ubifs_scan_destroy(sleb); in ubifs_consolidate_log()
|
A D | tnc_commit.c | 226 struct ubifs_scan_leb *sleb; in layout_leb_in_gaps() local 246 sleb = ubifs_scan(c, lnum, 0, c->ileb_buf, 0); in layout_leb_in_gaps() 248 if (IS_ERR(sleb)) in layout_leb_in_gaps() 249 return PTR_ERR(sleb); in layout_leb_in_gaps() 251 list_for_each_entry(snod, &sleb->nodes, list) { in layout_leb_in_gaps() 263 ubifs_scan_destroy(sleb); in layout_leb_in_gaps() 279 ubifs_scan_destroy(sleb); in layout_leb_in_gaps() 286 ubifs_scan_destroy(sleb); in layout_leb_in_gaps()
|
A D | lprops.c | 1019 struct ubifs_scan_leb *sleb; in scan_check_cb() local 1102 sleb = ubifs_scan(c, lnum, 0, buf, 0); in scan_check_cb() 1103 if (IS_ERR(sleb)) { in scan_check_cb() 1104 ret = PTR_ERR(sleb); in scan_check_cb() 1113 list_for_each_entry(snod, &sleb->nodes, list) { in scan_check_cb() 1143 free = c->leb_size - sleb->endpt; in scan_check_cb() 1144 dirty = sleb->endpt - used; in scan_check_cb() 1225 ubifs_scan_destroy(sleb); in scan_check_cb() 1234 ubifs_scan_destroy(sleb); in scan_check_cb()
|
A D | debug.c | 833 struct ubifs_scan_leb *sleb; in ubifs_dump_leb() local 845 sleb = ubifs_scan(c, lnum, 0, buf, 0); in ubifs_dump_leb() 846 if (IS_ERR(sleb)) { in ubifs_dump_leb() 847 ubifs_err(c, "scan error %d", (int)PTR_ERR(sleb)); in ubifs_dump_leb() 852 sleb->nodes_cnt, sleb->endpt); in ubifs_dump_leb() 854 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_leb() 862 ubifs_scan_destroy(sleb); in ubifs_dump_leb()
|
A D | ubifs.h | 1742 void ubifs_scan_destroy(struct ubifs_scan_leb *sleb); 1747 void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, 1749 int ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,
|