Lines Matching refs:fn
33 struct jffs2_raw_node_ref *ref = tn->fn->raw; in check_node_data()
154 BUG_ON(ref_obsolete(tn->fn->raw)); in check_tn_node()
157 if (ref_flags(tn->fn->raw) != REF_UNCHECKED) in check_tn_node()
161 tn->fn->ofs, tn->fn->ofs + tn->fn->size, ref_offset(tn->fn->raw)); in check_tn_node()
169 jffs2_mark_node_obsolete(c, tn->fn->raw); in check_tn_node()
187 if (tn->fn->ofs < offset) in jffs2_lookup_tn()
189 else if (tn->fn->ofs >= offset) in jffs2_lookup_tn()
201 jffs2_mark_node_obsolete(c, tn->fn->raw); in jffs2_kill_tn()
202 jffs2_free_full_dnode(tn->fn); in jffs2_kill_tn()
222 uint32_t fn_end = tn->fn->ofs + tn->fn->size; in jffs2_add_tn_to_tree()
225 …"insert fragment %#04x-%#04x, ver %u at %08x\n", tn->fn->ofs, fn_end, tn->version, ref_offset(tn->… in jffs2_add_tn_to_tree()
231 if (!tn->fn->size) { in jffs2_add_tn_to_tree()
250 this = jffs2_lookup_tn(&rii->tn_root, tn->fn->ofs); in jffs2_add_tn_to_tree()
266 …_readinode("'this' found %#04x-%#04x (%s)\n", this->fn->ofs, this->fn->ofs + this->fn->size, this-… in jffs2_add_tn_to_tree()
270 if (this->fn->ofs > fn_end) in jffs2_add_tn_to_tree()
273 this->version, this->fn->ofs, this->fn->size); in jffs2_add_tn_to_tree()
293 this->fn->ofs >= tn->fn->ofs && in jffs2_add_tn_to_tree()
294 this->fn->ofs + this->fn->size <= fn_end) { in jffs2_add_tn_to_tree()
302 while (this && this->fn->ofs + this->fn->size <= fn_end) { in jffs2_add_tn_to_tree()
307 this->version, this->fn->ofs, in jffs2_add_tn_to_tree()
308 this->fn->ofs+this->fn->size); in jffs2_add_tn_to_tree()
317 this->fn->ofs <= tn->fn->ofs && in jffs2_add_tn_to_tree()
318 this->fn->ofs+this->fn->size >= fn_end) { in jffs2_add_tn_to_tree()
345 if (tn->fn->ofs > insert_point->fn->ofs) in jffs2_add_tn_to_tree()
347 else if (tn->fn->ofs < insert_point->fn->ofs || in jffs2_add_tn_to_tree()
348 tn->fn->size < insert_point->fn->size) in jffs2_add_tn_to_tree()
361 if (this->fn->ofs + this->fn->size > tn->fn->ofs) { in jffs2_add_tn_to_tree()
363 this, this->version, this->fn->ofs, in jffs2_add_tn_to_tree()
364 this->fn->ofs+this->fn->size); in jffs2_add_tn_to_tree()
386 while (this && this->fn->ofs < fn_end) { in jffs2_add_tn_to_tree()
389 this->version, this->fn->ofs, in jffs2_add_tn_to_tree()
390 this->fn->ofs+this->fn->size); in jffs2_add_tn_to_tree()
462 rii->latest_ref = rii->mdata_tn->fn->raw; in jffs2_build_inode_fragtree()
467 dbg_readinode("tn %p ver %d range 0x%x-0x%x ov %d\n", this, this->version, this->fn->ofs, in jffs2_build_inode_fragtree()
468 this->fn->ofs+this->fn->size, this->overlapped); in jffs2_build_inode_fragtree()
502 this->version, this->fn->ofs, in jffs2_build_inode_fragtree()
503 this->fn->ofs+this->fn->size); in jffs2_build_inode_fragtree()
512 rii->latest_ref = this->fn->raw; in jffs2_build_inode_fragtree()
515 this, this->version, this->fn->ofs, in jffs2_build_inode_fragtree()
516 this->fn->ofs+this->fn->size, this->overlapped); in jffs2_build_inode_fragtree()
518 ret = jffs2_add_full_dnode_to_inode(c, f, this->fn); in jffs2_build_inode_fragtree()
526 jffs2_mark_node_obsolete(c, this->fn->raw); in jffs2_build_inode_fragtree()
527 jffs2_free_full_dnode(this->fn); in jffs2_build_inode_fragtree()
559 jffs2_free_full_dnode(tn->fn); in jffs2_free_tmp_dnode_info_list()
832 tn->fn = jffs2_alloc_full_dnode(); in read_dnode()
833 if (!tn->fn) { in read_dnode()
840 tn->fn->ofs = je32_to_cpu(rd->offset); in read_dnode()
843 tn->fn->raw = ref; in read_dnode()
852 tn->fn->size = csize; in read_dnode()
854 tn->fn->size = je32_to_cpu(rd->dsize); in read_dnode()
863 jffs2_free_full_dnode(tn->fn); in read_dnode()
873 tn, tn->version, tn->fn->ofs, in read_dnode()
874 tn->fn->ofs+tn->fn->size, tn->overlapped); in read_dnode()
1178 jffs2_free_full_dnode(rii.mdata_tn->fn); in jffs2_do_read_inode_internal()
1186 if (rii.mdata_tn->fn->raw == rii.latest_ref) { in jffs2_do_read_inode_internal()
1187 f->metadata = rii.mdata_tn->fn; in jffs2_do_read_inode_internal()