Home
last modified time | relevance | path

Searched refs:snod (Results 1 – 20 of 20) sorted by relevance

/openbmc/linux/fs/ubifs/
H A Dgc.c232 struct ubifs_scan_node *snod, *tmp; in sort_nodes() local
237 list_for_each_entry_safe(snod, tmp, &sleb->nodes, list) { in sort_nodes()
238 ubifs_assert(c, snod->type == UBIFS_INO_NODE || in sort_nodes()
239 snod->type == UBIFS_DATA_NODE || in sort_nodes()
240 snod->type == UBIFS_DENT_NODE || in sort_nodes()
241 snod->type == UBIFS_XENT_NODE || in sort_nodes()
242 snod->type == UBIFS_TRUN_NODE || in sort_nodes()
243 snod->type == UBIFS_AUTH_NODE); in sort_nodes()
245 if (snod->type != UBIFS_INO_NODE && in sort_nodes()
246 snod->type != UBIFS_DATA_NODE && in sort_nodes()
[all …]
H A Dreplay.c595 struct ubifs_scan_node *snod; in authenticate_sleb() local
604 list_for_each_entry(snod, &sleb->nodes, list) { in authenticate_sleb()
608 if (snod->type == UBIFS_AUTH_NODE) { in authenticate_sleb()
609 struct ubifs_auth_node *auth = snod->node; in authenticate_sleb()
627 err = crypto_shash_update(log_hash, snod->node, in authenticate_sleb()
628 snod->len); in authenticate_sleb()
672 struct ubifs_scan_node *snod; in replay_bud() local
721 list_for_each_entry(snod, &sleb->nodes, list) { in replay_bud()
727 if (snod->sqnum >= SQNUM_WATERMARK) { in replay_bud()
732 ubifs_node_calc_hash(c, snod->node, hash); in replay_bud()
[all …]
H A Dscan.c186 struct ubifs_scan_node *snod; in ubifs_add_snod() local
188 snod = kmalloc(sizeof(struct ubifs_scan_node), GFP_NOFS); in ubifs_add_snod()
189 if (!snod) in ubifs_add_snod()
192 snod->sqnum = le64_to_cpu(ch->sqnum); in ubifs_add_snod()
193 snod->type = ch->node_type; in ubifs_add_snod()
194 snod->offs = offs; in ubifs_add_snod()
195 snod->len = le32_to_cpu(ch->len); in ubifs_add_snod()
196 snod->node = buf; in ubifs_add_snod()
207 key_read(c, &ino->key, &snod->key); in ubifs_add_snod()
210 invalid_key_init(c, &snod->key); in ubifs_add_snod()
[all …]
H A Dmaster.c93 struct ubifs_scan_node *snod; in scan_for_master() local
103 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, in scan_for_master()
105 if (snod->type != UBIFS_MST_NODE) in scan_for_master()
107 memcpy(c->mst_node, snod->node, snod->len); in scan_for_master()
108 offs = snod->offs; in scan_for_master()
121 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, list); in scan_for_master()
122 if (snod->type != UBIFS_MST_NODE) in scan_for_master()
124 if (snod->offs != offs) in scan_for_master()
126 if (ubifs_compare_master_node(c, c->mst_node, snod->node)) in scan_for_master()
159 snod->type, lnum, snod->offs); in scan_for_master()
H A Drecovery.c498 struct ubifs_scan_node *snod; in fix_unclean_leb() local
500 snod = list_entry(sleb->nodes.prev, in fix_unclean_leb()
502 endpt = snod->offs + snod->len; in fix_unclean_leb()
565 struct ubifs_scan_node *snod; in drop_last_group() local
568 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, in drop_last_group()
570 ch = snod->node; in drop_last_group()
575 sleb->lnum, snod->offs); in drop_last_group()
576 *offs = snod->offs; in drop_last_group()
577 list_del(&snod->list); in drop_last_group()
578 kfree(snod); in drop_last_group()
[all …]
H A Dorphan.c634 struct ubifs_scan_node *snod; in do_kill_orphans() local
645 list_for_each_entry(snod, &sleb->nodes, list) { in do_kill_orphans()
646 if (snod->type != UBIFS_ORPH_NODE) { in do_kill_orphans()
648 snod->type, sleb->lnum, snod->offs); in do_kill_orphans()
649 ubifs_dump_node(c, snod->node, in do_kill_orphans()
650 c->leb_size - snod->offs); in do_kill_orphans()
655 orph = snod->node; in do_kill_orphans()
677 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans()
678 ubifs_dump_node(c, snod->node, in do_kill_orphans()
679 c->leb_size - snod->offs); in do_kill_orphans()
[all …]
H A Dtnc_commit.c227 struct ubifs_scan_node *snod; in layout_leb_in_gaps() local
251 list_for_each_entry(snod, &sleb->nodes, list) { in layout_leb_in_gaps()
255 ubifs_assert(c, snod->type == UBIFS_IDX_NODE); in layout_leb_in_gaps()
256 idx = snod->node; in layout_leb_in_gaps()
257 key_read(c, ubifs_idx_key(c, idx), &snod->key); in layout_leb_in_gaps()
260 in_use = is_idx_node_in_use(c, &snod->key, level, lnum, in layout_leb_in_gaps()
261 snod->offs); in layout_leb_in_gaps()
268 dirt += ALIGN(snod->len, 8); in layout_leb_in_gaps()
275 gap_end = snod->offs; in layout_leb_in_gaps()
283 gap_start = ALIGN(snod->offs + snod->len, 8); in layout_leb_in_gaps()
H A Dauth.c196 struct ubifs_scan_node *snod; in ubifs_sb_verify_signature() local
211 snod = list_first_entry(&sleb->nodes, struct ubifs_scan_node, list); in ubifs_sb_verify_signature()
213 if (snod->type != UBIFS_SIG_NODE) { in ubifs_sb_verify_signature()
219 signode = snod->node; in ubifs_sb_verify_signature()
221 if (le32_to_cpu(signode->len) > snod->len + sizeof(struct ubifs_sig_node)) { in ubifs_sb_verify_signature()
H A Dlprops.c1020 struct ubifs_scan_node *snod; in scan_check_cb() local
1113 list_for_each_entry(snod, &sleb->nodes, list) { in scan_check_cb()
1119 is_idx = (snod->type == UBIFS_IDX_NODE) ? 1 : 0; in scan_check_cb()
1121 if (is_idx && snod->type != UBIFS_IDX_NODE) { in scan_check_cb()
1123 lnum, snod->offs); in scan_check_cb()
1127 if (snod->type == UBIFS_IDX_NODE) { in scan_check_cb()
1128 struct ubifs_idx_node *idx = snod->node; in scan_check_cb()
1130 key_read(c, ubifs_idx_key(c, idx), &snod->key); in scan_check_cb()
1134 found = ubifs_tnc_has_node(c, &snod->key, level, lnum, in scan_check_cb()
1135 snod->offs, is_idx); in scan_check_cb()
[all …]
H A Dlog.c645 struct ubifs_scan_node *snod; in ubifs_consolidate_log() local
663 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_consolidate_log()
664 switch (snod->type) { in ubifs_consolidate_log()
666 struct ubifs_ref_node *ref = snod->node; in ubifs_consolidate_log()
674 &offs, snod->node); in ubifs_consolidate_log()
684 snod->node); in ubifs_consolidate_log()
H A Ddebug.c834 struct ubifs_scan_node *snod; in ubifs_dump_leb() local
854 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_leb()
857 snod->offs, snod->len); in ubifs_dump_leb()
858 ubifs_dump_node(c, snod->node, c->leb_size - snod->offs); in ubifs_dump_leb()
/openbmc/u-boot/fs/ubifs/
H A Dgc.c241 struct ubifs_scan_node *snod, *tmp; in sort_nodes() local
246 list_for_each_entry_safe(snod, tmp, &sleb->nodes, list) { in sort_nodes()
247 ubifs_assert(snod->type == UBIFS_INO_NODE || in sort_nodes()
248 snod->type == UBIFS_DATA_NODE || in sort_nodes()
249 snod->type == UBIFS_DENT_NODE || in sort_nodes()
250 snod->type == UBIFS_XENT_NODE || in sort_nodes()
251 snod->type == UBIFS_TRUN_NODE); in sort_nodes()
253 if (snod->type != UBIFS_INO_NODE && in sort_nodes()
254 snod->type != UBIFS_DATA_NODE && in sort_nodes()
255 snod->type != UBIFS_DENT_NODE && in sort_nodes()
[all …]
H A Dreplay.c539 struct ubifs_scan_node *snod; in replay_bud() local
579 list_for_each_entry(snod, &sleb->nodes, list) { in replay_bud()
584 if (snod->sqnum >= SQNUM_WATERMARK) { in replay_bud()
589 if (snod->sqnum > c->max_sqnum) in replay_bud()
590 c->max_sqnum = snod->sqnum; in replay_bud()
592 switch (snod->type) { in replay_bud()
595 struct ubifs_ino_node *ino = snod->node; in replay_bud()
600 err = insert_node(c, lnum, snod->offs, snod->len, in replay_bud()
601 &snod->key, snod->sqnum, deletion, in replay_bud()
607 struct ubifs_data_node *dn = snod->node; in replay_bud()
[all …]
H A Dscan.c191 struct ubifs_scan_node *snod; in ubifs_add_snod() local
193 snod = kmalloc(sizeof(struct ubifs_scan_node), GFP_NOFS); in ubifs_add_snod()
194 if (!snod) in ubifs_add_snod()
197 snod->sqnum = le64_to_cpu(ch->sqnum); in ubifs_add_snod()
198 snod->type = ch->node_type; in ubifs_add_snod()
199 snod->offs = offs; in ubifs_add_snod()
200 snod->len = le32_to_cpu(ch->len); in ubifs_add_snod()
201 snod->node = buf; in ubifs_add_snod()
212 key_read(c, &ino->key, &snod->key); in ubifs_add_snod()
215 invalid_key_init(c, &snod->key); in ubifs_add_snod()
[all …]
H A Dmaster.c32 struct ubifs_scan_node *snod; in scan_for_master() local
42 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, in scan_for_master()
44 if (snod->type != UBIFS_MST_NODE) in scan_for_master()
46 memcpy(c->mst_node, snod->node, snod->len); in scan_for_master()
47 offs = snod->offs; in scan_for_master()
60 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, list); in scan_for_master()
61 if (snod->type != UBIFS_MST_NODE) in scan_for_master()
63 if (snod->offs != offs) in scan_for_master()
66 (void *)snod->node + UBIFS_CH_SZ, in scan_for_master()
79 snod->type, lnum, snod->offs); in scan_for_master()
H A Drecovery.c504 struct ubifs_scan_node *snod; in fix_unclean_leb() local
506 snod = list_entry(sleb->nodes.prev, in fix_unclean_leb()
508 endpt = snod->offs + snod->len; in fix_unclean_leb()
573 struct ubifs_scan_node *snod; in drop_last_group() local
576 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, in drop_last_group()
578 ch = snod->node; in drop_last_group()
583 sleb->lnum, snod->offs); in drop_last_group()
584 *offs = snod->offs; in drop_last_group()
585 list_del(&snod->list); in drop_last_group()
586 kfree(snod); in drop_last_group()
[all …]
H A Dorphan.c553 struct ubifs_scan_node *snod; in do_kill_orphans() local
559 list_for_each_entry(snod, &sleb->nodes, list) { in do_kill_orphans()
560 if (snod->type != UBIFS_ORPH_NODE) { in do_kill_orphans()
562 snod->type, sleb->lnum, snod->offs); in do_kill_orphans()
563 ubifs_dump_node(c, snod->node); in do_kill_orphans()
567 orph = snod->node; in do_kill_orphans()
589 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans()
590 ubifs_dump_node(c, snod->node); in do_kill_orphans()
617 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans()
847 struct ubifs_scan_node *snod; in dbg_read_orphans() local
[all …]
H A Dlprops.c1025 struct ubifs_scan_node *snod; in scan_check_cb() local
1118 list_for_each_entry(snod, &sleb->nodes, list) { in scan_check_cb()
1124 is_idx = (snod->type == UBIFS_IDX_NODE) ? 1 : 0; in scan_check_cb()
1126 if (is_idx && snod->type != UBIFS_IDX_NODE) { in scan_check_cb()
1128 lnum, snod->offs); in scan_check_cb()
1132 if (snod->type == UBIFS_IDX_NODE) { in scan_check_cb()
1133 struct ubifs_idx_node *idx = snod->node; in scan_check_cb()
1135 key_read(c, ubifs_idx_key(c, idx), &snod->key); in scan_check_cb()
1139 found = ubifs_tnc_has_node(c, &snod->key, level, lnum, in scan_check_cb()
1140 snod->offs, is_idx); in scan_check_cb()
[all …]
H A Dlog.c627 struct ubifs_scan_node *snod; in ubifs_consolidate_log() local
645 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_consolidate_log()
646 switch (snod->type) { in ubifs_consolidate_log()
648 struct ubifs_ref_node *ref = snod->node; in ubifs_consolidate_log()
656 &offs, snod->node); in ubifs_consolidate_log()
666 snod->node); in ubifs_consolidate_log()
H A Ddebug.c806 struct ubifs_scan_node *snod; in ubifs_dump_sleb() local
811 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_sleb()
814 sleb->lnum, snod->offs, snod->len); in ubifs_dump_sleb()
815 ubifs_dump_node(c, snod->node); in ubifs_dump_sleb()
822 struct ubifs_scan_node *snod; in ubifs_dump_leb() local
842 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_leb()
845 snod->offs, snod->len); in ubifs_dump_leb()
846 ubifs_dump_node(c, snod->node); in ubifs_dump_leb()