Home
last modified time | relevance | path

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

/fs/ubifs/
Dgc.c247 struct ubifs_scan_node *snod, *tmp; in sort_nodes() local
252 list_for_each_entry_safe(snod, tmp, &sleb->nodes, list) { in sort_nodes()
253 ubifs_assert(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()
256 snod->type == UBIFS_XENT_NODE || in sort_nodes()
257 snod->type == UBIFS_TRUN_NODE); in sort_nodes()
259 if (snod->type != UBIFS_INO_NODE && in sort_nodes()
260 snod->type != UBIFS_DATA_NODE && in sort_nodes()
261 snod->type != UBIFS_DENT_NODE && in sort_nodes()
[all …]
Dreplay.c546 struct ubifs_scan_node *snod; in replay_bud() local
586 list_for_each_entry(snod, &sleb->nodes, list) { in replay_bud()
591 if (snod->sqnum >= SQNUM_WATERMARK) { in replay_bud()
596 if (snod->sqnum > c->max_sqnum) in replay_bud()
597 c->max_sqnum = snod->sqnum; in replay_bud()
599 switch (snod->type) { in replay_bud()
602 struct ubifs_ino_node *ino = snod->node; in replay_bud()
607 err = insert_node(c, lnum, snod->offs, snod->len, in replay_bud()
608 &snod->key, snod->sqnum, deletion, in replay_bud()
614 struct ubifs_data_node *dn = snod->node; in replay_bud()
[all …]
Dscan.c199 struct ubifs_scan_node *snod; in ubifs_add_snod() local
201 snod = kmalloc(sizeof(struct ubifs_scan_node), GFP_NOFS); in ubifs_add_snod()
202 if (!snod) in ubifs_add_snod()
205 snod->sqnum = le64_to_cpu(ch->sqnum); in ubifs_add_snod()
206 snod->type = ch->node_type; in ubifs_add_snod()
207 snod->offs = offs; in ubifs_add_snod()
208 snod->len = le32_to_cpu(ch->len); in ubifs_add_snod()
209 snod->node = buf; in ubifs_add_snod()
220 key_read(c, &ino->key, &snod->key); in ubifs_add_snod()
223 invalid_key_init(c, &snod->key); in ubifs_add_snod()
[all …]
Dmaster.c39 struct ubifs_scan_node *snod; in scan_for_master() local
49 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, in scan_for_master()
51 if (snod->type != UBIFS_MST_NODE) in scan_for_master()
53 memcpy(c->mst_node, snod->node, snod->len); in scan_for_master()
54 offs = snod->offs; in scan_for_master()
67 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, list); in scan_for_master()
68 if (snod->type != UBIFS_MST_NODE) in scan_for_master()
70 if (snod->offs != offs) in scan_for_master()
73 (void *)snod->node + UBIFS_CH_SZ, in scan_for_master()
86 snod->type, lnum, snod->offs); in scan_for_master()
Drecovery.c510 struct ubifs_scan_node *snod; in fix_unclean_leb() local
512 snod = list_entry(sleb->nodes.prev, in fix_unclean_leb()
514 endpt = snod->offs + snod->len; in fix_unclean_leb()
577 struct ubifs_scan_node *snod; in drop_last_group() local
580 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, in drop_last_group()
582 ch = snod->node; in drop_last_group()
587 sleb->lnum, snod->offs); in drop_last_group()
588 *offs = snod->offs; in drop_last_group()
589 list_del(&snod->list); in drop_last_group()
590 kfree(snod); in drop_last_group()
[all …]
Dorphan.c564 struct ubifs_scan_node *snod; in do_kill_orphans() local
570 list_for_each_entry(snod, &sleb->nodes, list) { in do_kill_orphans()
571 if (snod->type != UBIFS_ORPH_NODE) { in do_kill_orphans()
573 snod->type, sleb->lnum, snod->offs); in do_kill_orphans()
574 ubifs_dump_node(c, snod->node); in do_kill_orphans()
578 orph = snod->node; in do_kill_orphans()
600 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans()
601 ubifs_dump_node(c, snod->node); in do_kill_orphans()
628 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans()
858 struct ubifs_scan_node *snod; in dbg_read_orphans() local
[all …]
Dtnc_commit.c232 struct ubifs_scan_node *snod; in layout_leb_in_gaps() local
256 list_for_each_entry(snod, &sleb->nodes, list) { in layout_leb_in_gaps()
260 ubifs_assert(snod->type == UBIFS_IDX_NODE); in layout_leb_in_gaps()
261 idx = snod->node; in layout_leb_in_gaps()
262 key_read(c, ubifs_idx_key(c, idx), &snod->key); in layout_leb_in_gaps()
265 in_use = is_idx_node_in_use(c, &snod->key, level, lnum, in layout_leb_in_gaps()
266 snod->offs); in layout_leb_in_gaps()
273 dirt += ALIGN(snod->len, 8); in layout_leb_in_gaps()
280 gap_end = snod->offs; in layout_leb_in_gaps()
288 gap_start = ALIGN(snod->offs + snod->len, 8); in layout_leb_in_gaps()
Dlprops.c1034 struct ubifs_scan_node *snod; in scan_check_cb() local
1127 list_for_each_entry(snod, &sleb->nodes, list) { in scan_check_cb()
1133 is_idx = (snod->type == UBIFS_IDX_NODE) ? 1 : 0; in scan_check_cb()
1135 if (is_idx && snod->type != UBIFS_IDX_NODE) { in scan_check_cb()
1137 lnum, snod->offs); in scan_check_cb()
1141 if (snod->type == UBIFS_IDX_NODE) { in scan_check_cb()
1142 struct ubifs_idx_node *idx = snod->node; in scan_check_cb()
1144 key_read(c, ubifs_idx_key(c, idx), &snod->key); in scan_check_cb()
1148 found = ubifs_tnc_has_node(c, &snod->key, level, lnum, in scan_check_cb()
1149 snod->offs, is_idx); in scan_check_cb()
[all …]
Dlog.c636 struct ubifs_scan_node *snod; in ubifs_consolidate_log() local
654 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_consolidate_log()
655 switch (snod->type) { in ubifs_consolidate_log()
657 struct ubifs_ref_node *ref = snod->node; in ubifs_consolidate_log()
665 &offs, snod->node); in ubifs_consolidate_log()
675 snod->node); in ubifs_consolidate_log()
Ddebug.c799 struct ubifs_scan_node *snod; in ubifs_dump_sleb() local
804 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_sleb()
807 sleb->lnum, snod->offs, snod->len); in ubifs_dump_sleb()
808 ubifs_dump_node(c, snod->node); in ubifs_dump_sleb()
815 struct ubifs_scan_node *snod; in ubifs_dump_leb() local
835 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_leb()
838 snod->offs, snod->len); in ubifs_dump_leb()
839 ubifs_dump_node(c, snod->node); in ubifs_dump_leb()