/linux-4.19.296/fs/ubifs/ |
D | gc.c | 247 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(c, 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 …]
|
D | replay.c | 582 struct ubifs_scan_node *snod; in replay_bud() local 622 list_for_each_entry(snod, &sleb->nodes, list) { in replay_bud() 627 if (snod->sqnum >= SQNUM_WATERMARK) { in replay_bud() 632 if (snod->sqnum > c->max_sqnum) in replay_bud() 633 c->max_sqnum = snod->sqnum; in replay_bud() 635 switch (snod->type) { in replay_bud() 638 struct ubifs_ino_node *ino = snod->node; in replay_bud() 643 err = insert_node(c, lnum, snod->offs, snod->len, in replay_bud() 644 &snod->key, snod->sqnum, deletion, in replay_bud() 650 struct ubifs_data_node *dn = snod->node; in replay_bud() [all …]
|
D | scan.c | 198 struct ubifs_scan_node *snod; in ubifs_add_snod() local 200 snod = kmalloc(sizeof(struct ubifs_scan_node), GFP_NOFS); in ubifs_add_snod() 201 if (!snod) in ubifs_add_snod() 204 snod->sqnum = le64_to_cpu(ch->sqnum); in ubifs_add_snod() 205 snod->type = ch->node_type; in ubifs_add_snod() 206 snod->offs = offs; in ubifs_add_snod() 207 snod->len = le32_to_cpu(ch->len); in ubifs_add_snod() 208 snod->node = buf; in ubifs_add_snod() 219 key_read(c, &ino->key, &snod->key); in ubifs_add_snod() 222 invalid_key_init(c, &snod->key); in ubifs_add_snod() [all …]
|
D | master.c | 39 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()
|
D | orphan.c | 564 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 …]
|
D | recovery.c | 509 struct ubifs_scan_node *snod; in fix_unclean_leb() local 511 snod = list_entry(sleb->nodes.prev, in fix_unclean_leb() 513 endpt = snod->offs + snod->len; in fix_unclean_leb() 576 struct ubifs_scan_node *snod; in drop_last_group() local 579 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, in drop_last_group() 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() [all …]
|
D | tnc_commit.c | 234 struct ubifs_scan_node *snod; in layout_leb_in_gaps() local 258 list_for_each_entry(snod, &sleb->nodes, list) { in layout_leb_in_gaps() 262 ubifs_assert(c, snod->type == UBIFS_IDX_NODE); in layout_leb_in_gaps() 263 idx = snod->node; in layout_leb_in_gaps() 264 key_read(c, ubifs_idx_key(c, idx), &snod->key); in layout_leb_in_gaps() 267 in_use = is_idx_node_in_use(c, &snod->key, level, lnum, in layout_leb_in_gaps() 268 snod->offs); in layout_leb_in_gaps() 275 dirt += ALIGN(snod->len, 8); in layout_leb_in_gaps() 282 gap_end = snod->offs; in layout_leb_in_gaps() 290 gap_start = ALIGN(snod->offs + snod->len, 8); in layout_leb_in_gaps()
|
D | log.c | 636 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()
|
D | lprops.c | 1032 struct ubifs_scan_node *snod; in scan_check_cb() local 1125 list_for_each_entry(snod, &sleb->nodes, list) { in scan_check_cb() 1131 is_idx = (snod->type == UBIFS_IDX_NODE) ? 1 : 0; in scan_check_cb() 1133 if (is_idx && snod->type != UBIFS_IDX_NODE) { in scan_check_cb() 1135 lnum, snod->offs); in scan_check_cb() 1139 if (snod->type == UBIFS_IDX_NODE) { in scan_check_cb() 1140 struct ubifs_idx_node *idx = snod->node; in scan_check_cb() 1142 key_read(c, ubifs_idx_key(c, idx), &snod->key); in scan_check_cb() 1146 found = ubifs_tnc_has_node(c, &snod->key, level, lnum, in scan_check_cb() 1147 snod->offs, is_idx); in scan_check_cb() [all …]
|
D | debug.c | 803 struct ubifs_scan_node *snod; in ubifs_dump_sleb() local 808 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_sleb() 811 sleb->lnum, snod->offs, snod->len); in ubifs_dump_sleb() 812 ubifs_dump_node(c, snod->node); in ubifs_dump_sleb() 819 struct ubifs_scan_node *snod; in ubifs_dump_leb() local 839 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_leb() 842 snod->offs, snod->len); in ubifs_dump_leb() 843 ubifs_dump_node(c, snod->node); in ubifs_dump_leb()
|