Lines Matching refs:snod
595 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()
734 if (snod->sqnum > c->max_sqnum) in replay_bud()
735 c->max_sqnum = snod->sqnum; in replay_bud()
737 switch (snod->type) { in replay_bud()
740 struct ubifs_ino_node *ino = snod->node; in replay_bud()
745 err = insert_node(c, lnum, snod->offs, snod->len, hash, in replay_bud()
746 &snod->key, snod->sqnum, deletion, in replay_bud()
752 struct ubifs_data_node *dn = snod->node; in replay_bud()
754 key_block(c, &snod->key) * in replay_bud()
757 err = insert_node(c, lnum, snod->offs, snod->len, hash, in replay_bud()
758 &snod->key, snod->sqnum, deletion, in replay_bud()
765 struct ubifs_dent_node *dent = snod->node; in replay_bud()
771 err = insert_dent(c, lnum, snod->offs, snod->len, hash, in replay_bud()
772 &snod->key, dent->name, in replay_bud()
773 le16_to_cpu(dent->nlen), snod->sqnum, in replay_bud()
779 struct ubifs_trun_node *trun = snod->node; in replay_bud()
797 err = insert_node(c, lnum, snod->offs, snod->len, hash, in replay_bud()
798 &key, snod->sqnum, 1, &used, in replay_bud()
806 snod->type, lnum, snod->offs); in replay_bud()
832 ubifs_err(c, "bad node is at LEB %d:%d", lnum, snod->offs); in replay_bud()
833 ubifs_dump_node(c, snod->node, c->leb_size - snod->offs); in replay_bud()
986 struct ubifs_scan_node *snod; in replay_log_leb() local
1010 snod = list_entry(sleb->nodes.next, struct ubifs_scan_node, list); in replay_log_leb()
1019 if (snod->type != UBIFS_CS_NODE) { in replay_log_leb()
1044 if (snod->sqnum < c->cs_sqnum) { in replay_log_leb()
1057 if (snod->offs != 0) { in replay_log_leb()
1062 list_for_each_entry(snod, &sleb->nodes, list) { in replay_log_leb()
1065 if (snod->sqnum >= SQNUM_WATERMARK) { in replay_log_leb()
1070 if (snod->sqnum < c->cs_sqnum) { in replay_log_leb()
1072 snod->sqnum, c->cs_sqnum); in replay_log_leb()
1076 if (snod->sqnum > c->max_sqnum) in replay_log_leb()
1077 c->max_sqnum = snod->sqnum; in replay_log_leb()
1079 switch (snod->type) { in replay_log_leb()
1081 const struct ubifs_ref_node *ref = snod->node; in replay_log_leb()
1097 snod->sqnum); in replay_log_leb()
1105 if (snod->offs != 0) { in replay_log_leb()
1128 lnum, offs + snod->offs); in replay_log_leb()
1129 ubifs_dump_node(c, snod->node, c->leb_size - snod->offs); in replay_log_leb()