/u-boot/fs/ubifs/ |
A D | gc.c | 260 list_del(&snod->list); in sort_nodes() 261 kfree(snod); in sort_nodes() 271 snod->offs, 0); in sort_nodes() 278 kfree(snod); in sort_nodes() 282 if (snod->len < *min) in sort_nodes() 283 *min = snod->len; in sort_nodes() 319 err = ubifs_wbuf_write_nolock(wbuf, snod->node, snod->len); in move_node() 325 snod->len); in move_node() 326 list_del(&snod->list); in move_node() 327 kfree(snod); in move_node() [all …]
|
A D | replay.c | 594 switch (snod->type) { in replay_bud() 602 err = insert_node(c, lnum, snod->offs, snod->len, in replay_bud() 603 &snod->key, snod->sqnum, deletion, in replay_bud() 614 err = insert_node(c, lnum, snod->offs, snod->len, in replay_bud() 615 &snod->key, snod->sqnum, deletion, in replay_bud() 628 err = insert_dent(c, lnum, snod->offs, snod->len, in replay_bud() 654 err = insert_node(c, lnum, snod->offs, snod->len, in replay_bud() 661 snod->type, lnum, snod->offs); in replay_bud() 888 if (snod->offs != 0) { in replay_log_leb() 910 switch (snod->type) { in replay_log_leb() [all …]
|
A D | scan.c | 193 struct ubifs_scan_node *snod; in ubifs_add_snod() local 195 snod = kmalloc(sizeof(struct ubifs_scan_node), GFP_NOFS); in ubifs_add_snod() 196 if (!snod) in ubifs_add_snod() 199 snod->sqnum = le64_to_cpu(ch->sqnum); in ubifs_add_snod() 200 snod->type = ch->node_type; in ubifs_add_snod() 201 snod->offs = offs; in ubifs_add_snod() 202 snod->len = le32_to_cpu(ch->len); in ubifs_add_snod() 203 snod->node = buf; in ubifs_add_snod() 214 key_read(c, &ino->key, &snod->key); in ubifs_add_snod() 217 invalid_key_init(c, &snod->key); in ubifs_add_snod() [all …]
|
A D | master.c | 34 struct ubifs_scan_node *snod; in scan_for_master() local 44 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, in scan_for_master() 46 if (snod->type != UBIFS_MST_NODE) in scan_for_master() 48 memcpy(c->mst_node, snod->node, snod->len); in scan_for_master() 49 offs = snod->offs; in scan_for_master() 62 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, list); in scan_for_master() 63 if (snod->type != UBIFS_MST_NODE) in scan_for_master() 65 if (snod->offs != offs) in scan_for_master() 68 (void *)snod->node + UBIFS_CH_SZ, in scan_for_master() 81 snod->type, lnum, snod->offs); in scan_for_master()
|
A D | orphan.c | 555 struct ubifs_scan_node *snod; in do_kill_orphans() local 562 if (snod->type != UBIFS_ORPH_NODE) { in do_kill_orphans() 564 snod->type, sleb->lnum, snod->offs); in do_kill_orphans() 565 ubifs_dump_node(c, snod->node); in do_kill_orphans() 569 orph = snod->node; in do_kill_orphans() 591 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans() 592 ubifs_dump_node(c, snod->node); in do_kill_orphans() 619 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans() 849 struct ubifs_scan_node *snod; in dbg_read_orphans() local 856 if (snod->type != UBIFS_ORPH_NODE) in dbg_read_orphans() [all …]
|
A D | recovery.c | 511 endpt = snod->offs + snod->len; in fix_unclean_leb() 581 ch = snod->node; in drop_last_group() 586 sleb->lnum, snod->offs); in drop_last_group() 587 *offs = snod->offs; in drop_last_group() 588 list_del(&snod->list); in drop_last_group() 589 kfree(snod); in drop_last_group() 604 struct ubifs_scan_node *snod; in drop_last_node() local 611 sleb->lnum, snod->offs); in drop_last_node() 612 *offs = snod->offs; in drop_last_node() 613 list_del(&snod->list); in drop_last_node() [all …]
|
A D | lprops.c | 1027 struct ubifs_scan_node *snod; in scan_check_cb() local 1120 list_for_each_entry(snod, &sleb->nodes, list) { in scan_check_cb() 1126 is_idx = (snod->type == UBIFS_IDX_NODE) ? 1 : 0; in scan_check_cb() 1128 if (is_idx && snod->type != UBIFS_IDX_NODE) { in scan_check_cb() 1130 lnum, snod->offs); in scan_check_cb() 1134 if (snod->type == UBIFS_IDX_NODE) { in scan_check_cb() 1135 struct ubifs_idx_node *idx = snod->node; in scan_check_cb() 1137 key_read(c, ubifs_idx_key(c, idx), &snod->key); in scan_check_cb() 1141 found = ubifs_tnc_has_node(c, &snod->key, level, lnum, in scan_check_cb() 1142 snod->offs, is_idx); in scan_check_cb() [all …]
|
A D | log.c | 629 struct ubifs_scan_node *snod; in ubifs_consolidate_log() local 647 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_consolidate_log() 648 switch (snod->type) { in ubifs_consolidate_log() 650 struct ubifs_ref_node *ref = snod->node; in ubifs_consolidate_log() 658 &offs, snod->node); in ubifs_consolidate_log() 668 snod->node); in ubifs_consolidate_log()
|
A D | debug.c | 808 struct ubifs_scan_node *snod; in ubifs_dump_sleb() local 813 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_sleb() 816 sleb->lnum, snod->offs, snod->len); in ubifs_dump_sleb() 817 ubifs_dump_node(c, snod->node); in ubifs_dump_sleb() 824 struct ubifs_scan_node *snod; in ubifs_dump_leb() local 844 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_leb() 847 snod->offs, snod->len); in ubifs_dump_leb() 848 ubifs_dump_node(c, snod->node); in ubifs_dump_leb()
|