Lines Matching refs:this

24 				     struct jffs2_node_frag *this);
102 struct jffs2_node_frag *this) in jffs2_obsolete_node_frag() argument
104 if (this->node) { in jffs2_obsolete_node_frag()
105 this->node->frags--; in jffs2_obsolete_node_frag()
106 if (!this->node->frags) { in jffs2_obsolete_node_frag()
109 ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size); in jffs2_obsolete_node_frag()
110 jffs2_mark_node_obsolete(c, this->node->raw); in jffs2_obsolete_node_frag()
111 jffs2_free_full_dnode(this->node); in jffs2_obsolete_node_frag()
114 …ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size, this->node->frags); in jffs2_obsolete_node_frag()
115 mark_ref_normal(this->node->raw); in jffs2_obsolete_node_frag()
119 jffs2_free_node_frag(this); in jffs2_obsolete_node_frag()
171 struct jffs2_node_frag *this, uint32_t lastend) in no_overlapping_node() argument
183 if (this) { in no_overlapping_node()
189 rb_link_node(&holefrag->rb, &this->rb, &this->rb.rb_right); in no_overlapping_node()
196 this = holefrag; in no_overlapping_node()
199 if (this) { in no_overlapping_node()
204 rb_link_node(&newfrag->rb, &this->rb, &this->rb.rb_right); in no_overlapping_node()
217 struct jffs2_node_frag *this; in jffs2_add_frag_to_fragtree() local
221 this = jffs2_lookup_node_frag(root, newfrag->node->ofs); in jffs2_add_frag_to_fragtree()
223 if (this) { in jffs2_add_frag_to_fragtree()
225 this->ofs, this->ofs+this->size, this->node?(ref_offset(this->node->raw)):0xffffffff, this); in jffs2_add_frag_to_fragtree()
226 lastend = this->ofs + this->size; in jffs2_add_frag_to_fragtree()
241 if (this->node) in jffs2_add_frag_to_fragtree()
242 mark_ref_normal(this->node->raw); in jffs2_add_frag_to_fragtree()
246 return no_overlapping_node(c, root, newfrag, this, lastend); in jffs2_add_frag_to_fragtree()
249 if (this->node) in jffs2_add_frag_to_fragtree()
251 this->ofs, this->ofs + this->size, in jffs2_add_frag_to_fragtree()
252 ref_offset(this->node->raw), ref_flags(this->node->raw)); in jffs2_add_frag_to_fragtree()
255 this->ofs, this->ofs + this->size); in jffs2_add_frag_to_fragtree()
260 if (newfrag->ofs > this->ofs) { in jffs2_add_frag_to_fragtree()
266 if (this->node) in jffs2_add_frag_to_fragtree()
267 mark_ref_normal(this->node->raw); in jffs2_add_frag_to_fragtree()
269 if (this->ofs + this->size > newfrag->ofs + newfrag->size) { in jffs2_add_frag_to_fragtree()
273 if (this->node) in jffs2_add_frag_to_fragtree()
275 this->ofs, this->ofs+this->size, ref_offset(this->node->raw)); in jffs2_add_frag_to_fragtree()
278 this->ofs, this->ofs+this->size); in jffs2_add_frag_to_fragtree()
281 newfrag2 = new_fragment(this->node, newfrag->ofs + newfrag->size, in jffs2_add_frag_to_fragtree()
282 this->ofs + this->size - newfrag->ofs - newfrag->size); in jffs2_add_frag_to_fragtree()
285 if (this->node) in jffs2_add_frag_to_fragtree()
286 this->node->frags++; in jffs2_add_frag_to_fragtree()
289 this->size = newfrag->ofs - this->ofs; in jffs2_add_frag_to_fragtree()
297 jffs2_fragtree_insert(newfrag, this); in jffs2_add_frag_to_fragtree()
306 this->size = newfrag->ofs - this->ofs; in jffs2_add_frag_to_fragtree()
309 jffs2_fragtree_insert(newfrag, this); in jffs2_add_frag_to_fragtree()
315 newfrag, newfrag->ofs, newfrag->ofs+newfrag->size, this, this->ofs, this->ofs+this->size); in jffs2_add_frag_to_fragtree()
317 rb_replace_node(&this->rb, &newfrag->rb, root); in jffs2_add_frag_to_fragtree()
319 if (newfrag->ofs + newfrag->size >= this->ofs+this->size) { in jffs2_add_frag_to_fragtree()
320 dbg_fragtree2("obsoleting node frag %p (%x-%x)\n", this, this->ofs, this->ofs+this->size); in jffs2_add_frag_to_fragtree()
321 jffs2_obsolete_node_frag(c, this); in jffs2_add_frag_to_fragtree()
323 this->ofs += newfrag->size; in jffs2_add_frag_to_fragtree()
324 this->size -= newfrag->size; in jffs2_add_frag_to_fragtree()
326 jffs2_fragtree_insert(this, newfrag); in jffs2_add_frag_to_fragtree()
327 rb_insert_color(&this->rb, root); in jffs2_add_frag_to_fragtree()
334 while ((this = frag_next(newfrag)) && newfrag->ofs + newfrag->size >= this->ofs + this->size) { in jffs2_add_frag_to_fragtree()
337 this, this->ofs, this->ofs+this->size); in jffs2_add_frag_to_fragtree()
338 rb_erase(&this->rb, root); in jffs2_add_frag_to_fragtree()
339 jffs2_obsolete_node_frag(c, this); in jffs2_add_frag_to_fragtree()
344 if (!this || newfrag->ofs + newfrag->size == this->ofs) in jffs2_add_frag_to_fragtree()
348 this->size = (this->ofs + this->size) - (newfrag->ofs + newfrag->size); in jffs2_add_frag_to_fragtree()
349 this->ofs = newfrag->ofs + newfrag->size; in jffs2_add_frag_to_fragtree()
352 if (this->node) in jffs2_add_frag_to_fragtree()
353 mark_ref_normal(this->node->raw); in jffs2_add_frag_to_fragtree()
490 struct jffs2_inode_cache *this, *next; in jffs2_free_ino_caches() local
493 this = c->inocache_list[i]; in jffs2_free_ino_caches()
494 while (this) { in jffs2_free_ino_caches()
495 next = this->next; in jffs2_free_ino_caches()
496 jffs2_xattr_free_inode(c, this); in jffs2_free_ino_caches()
497 jffs2_free_inode_cache(this); in jffs2_free_ino_caches()
498 this = next; in jffs2_free_ino_caches()
507 struct jffs2_raw_node_ref *this, *next; in jffs2_free_raw_node_refs() local
510 this = c->blocks[i].first_node; in jffs2_free_raw_node_refs()
511 while (this) { in jffs2_free_raw_node_refs()
512 if (this[REFS_PER_BLOCK].flash_offset == REF_LINK_NODE) in jffs2_free_raw_node_refs()
513 next = this[REFS_PER_BLOCK].next_in_ino; in jffs2_free_raw_node_refs()
517 jffs2_free_refblock(this); in jffs2_free_raw_node_refs()
518 this = next; in jffs2_free_raw_node_refs()