Home
last modified time | relevance | path

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

/fs/ubifs/
Dgc.c235 struct ubifs_scan_node *snod, *tmp; in sort_nodes() local
240 list_for_each_entry_safe(snod, tmp, &sleb->nodes, list) { in sort_nodes()
241 ubifs_assert(c, snod->type == UBIFS_INO_NODE || in sort_nodes()
242 snod->type == UBIFS_DATA_NODE || in sort_nodes()
243 snod->type == UBIFS_DENT_NODE || in sort_nodes()
244 snod->type == UBIFS_XENT_NODE || in sort_nodes()
245 snod->type == UBIFS_TRUN_NODE || in sort_nodes()
246 snod->type == UBIFS_AUTH_NODE); in sort_nodes()
248 if (snod->type != UBIFS_INO_NODE && in sort_nodes()
249 snod->type != UBIFS_DATA_NODE && in sort_nodes()
[all …]
Dreplay.c601 struct ubifs_scan_node *snod; in authenticate_sleb() local
616 list_for_each_entry(snod, &sleb->nodes, list) { in authenticate_sleb()
620 if (snod->type == UBIFS_AUTH_NODE) { in authenticate_sleb()
621 struct ubifs_auth_node *auth = snod->node; in authenticate_sleb()
638 err = crypto_shash_update(log_hash, snod->node, in authenticate_sleb()
639 snod->len); in authenticate_sleb()
686 struct ubifs_scan_node *snod; in replay_bud() local
735 list_for_each_entry(snod, &sleb->nodes, list) { in replay_bud()
741 if (snod->sqnum >= SQNUM_WATERMARK) { in replay_bud()
746 ubifs_node_calc_hash(c, snod->node, hash); in replay_bud()
[all …]
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 …]
Dmaster.c96 struct ubifs_scan_node *snod; in scan_for_master() local
106 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, in scan_for_master()
108 if (snod->type != UBIFS_MST_NODE) in scan_for_master()
110 memcpy(c->mst_node, snod->node, snod->len); in scan_for_master()
111 offs = snod->offs; in scan_for_master()
124 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, list); in scan_for_master()
125 if (snod->type != UBIFS_MST_NODE) in scan_for_master()
127 if (snod->offs != offs) in scan_for_master()
129 if (ubifs_compare_master_node(c, c->mst_node, snod->node)) in scan_for_master()
162 snod->type, lnum, snod->offs); in scan_for_master()
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 …]
Dorphan.c627 struct ubifs_scan_node *snod; in do_kill_orphans() local
638 list_for_each_entry(snod, &sleb->nodes, list) { in do_kill_orphans()
639 if (snod->type != UBIFS_ORPH_NODE) { in do_kill_orphans()
641 snod->type, sleb->lnum, snod->offs); in do_kill_orphans()
642 ubifs_dump_node(c, snod->node); in do_kill_orphans()
647 orph = snod->node; in do_kill_orphans()
669 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans()
670 ubifs_dump_node(c, snod->node); in do_kill_orphans()
718 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans()
945 struct ubifs_scan_node *snod; in dbg_read_orphans() local
[all …]
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()
Dauth.c220 struct ubifs_scan_node *snod; in ubifs_sb_verify_signature() local
235 snod = list_first_entry(&sleb->nodes, struct ubifs_scan_node, list); in ubifs_sb_verify_signature()
237 if (snod->type != UBIFS_SIG_NODE) { in ubifs_sb_verify_signature()
243 signode = snod->node; in ubifs_sb_verify_signature()
245 if (le32_to_cpu(signode->len) > snod->len + sizeof(struct ubifs_sig_node)) { in ubifs_sb_verify_signature()
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 …]
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()
Ddebug.c797 struct ubifs_scan_node *snod; in ubifs_dump_sleb() local
802 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_sleb()
805 sleb->lnum, snod->offs, snod->len); in ubifs_dump_sleb()
806 ubifs_dump_node(c, snod->node); in ubifs_dump_sleb()
813 struct ubifs_scan_node *snod; in ubifs_dump_leb() local
833 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_leb()
836 snod->offs, snod->len); in ubifs_dump_leb()
837 ubifs_dump_node(c, snod->node); in ubifs_dump_leb()