Lines Matching refs:this
52 struct jffs2_node_frag *this = f->fraglist; in D1() argument
54 while(this) { in D1()
55 if (this->node) in D1()
56 …-%04x: 0x%08x on flash (*%p->%p)\n", this->ofs, this->ofs+this->size, this->node->raw->flash_offse… in D1()
58 …printk(KERN_DEBUG "frag %04x-%04x: hole (*%p->%p)\n", this->ofs, this->ofs+this->size, this, this-… in D1() argument
59 this = this->next; in D1()
78 static void jffs2_obsolete_node_frag(struct jffs2_sb_info *c, struct jffs2_node_frag *this) in jffs2_obsolete_node_frag() argument
80 if (this->node) { in jffs2_obsolete_node_frag()
81 this->node->frags--; in jffs2_obsolete_node_frag()
82 if (!this->node->frags) { in jffs2_obsolete_node_frag()
85 this->node->raw->flash_offset &~3, this->node->ofs, this->node->ofs+this->node->size)); in jffs2_obsolete_node_frag()
86 jffs2_mark_node_obsolete(c, this->node->raw); in jffs2_obsolete_node_frag()
87 jffs2_free_full_dnode(this->node); in jffs2_obsolete_node_frag()
90 this->node->raw->flash_offset &~3, this->node->ofs, this->node->ofs+this->node->size, in jffs2_obsolete_node_frag()
91 this->node->frags)); in jffs2_obsolete_node_frag()
95 jffs2_free_node_frag(this); in jffs2_obsolete_node_frag()
102 struct jffs2_node_frag *this, **prev, *old; in jffs2_add_full_dnode_to_fraglist() local
118 this = *list; in jffs2_add_full_dnode_to_fraglist()
132 while(this && fn->ofs >= this->ofs+this->size) { in jffs2_add_full_dnode_to_fraglist()
133 lastend = this->ofs + this->size; in jffs2_add_full_dnode_to_fraglist()
136 …this->ofs, this->ofs+this->size, this->node?(this->node->raw->flash_offset &~3):0xffffffff, this, … in jffs2_add_full_dnode_to_fraglist()
137 prev = &this->next; in jffs2_add_full_dnode_to_fraglist()
138 this = this->next; in jffs2_add_full_dnode_to_fraglist()
142 if (!this) { in jffs2_add_full_dnode_to_fraglist()
162 …this->ofs, this->ofs+this->size, this->node?(this->node->raw->flash_offset &~3):0xffffffff, this, … in jffs2_add_full_dnode_to_fraglist()
167 if (fn->ofs > this->ofs) { in jffs2_add_full_dnode_to_fraglist()
169 if (this->ofs + this->size > fn->ofs + fn->size) { in jffs2_add_full_dnode_to_fraglist()
176 D1(printk(KERN_DEBUG "split old frag 0x%04x-0x%04x -->", this->ofs, this->ofs+this->size); in jffs2_add_full_dnode_to_fraglist()
177 if (this->node) in jffs2_add_full_dnode_to_fraglist()
178 printk("phys 0x%08x\n", this->node->raw->flash_offset &~3); in jffs2_add_full_dnode_to_fraglist()
183 newfrag2->size = (this->ofs+this->size) - newfrag2->ofs; in jffs2_add_full_dnode_to_fraglist()
184 newfrag2->next = this->next; in jffs2_add_full_dnode_to_fraglist()
185 newfrag2->node = this->node; in jffs2_add_full_dnode_to_fraglist()
186 if (this->node) in jffs2_add_full_dnode_to_fraglist()
187 this->node->frags++; in jffs2_add_full_dnode_to_fraglist()
189 this->next = newfrag; in jffs2_add_full_dnode_to_fraglist()
190 this->size = newfrag->ofs - this->ofs; in jffs2_add_full_dnode_to_fraglist()
194 this->size = fn->ofs - this->ofs; in jffs2_add_full_dnode_to_fraglist()
195 newfrag->next = this->next; in jffs2_add_full_dnode_to_fraglist()
196 this->next = newfrag; in jffs2_add_full_dnode_to_fraglist()
197 this = newfrag->next; in jffs2_add_full_dnode_to_fraglist()
199 D2(printk(KERN_DEBUG "Inserting newfrag (*%p) in before 'this' (*%p)\n", newfrag, this)); in jffs2_add_full_dnode_to_fraglist()
201 newfrag->next = this; in jffs2_add_full_dnode_to_fraglist()
206 while (this && newfrag->ofs + newfrag->size >= this->ofs + this->size) { in jffs2_add_full_dnode_to_fraglist()
208 old = this; in jffs2_add_full_dnode_to_fraglist()
209 this = old->next; in jffs2_add_full_dnode_to_fraglist()
214 newfrag->next = this; in jffs2_add_full_dnode_to_fraglist()
216 if (!this || newfrag->ofs + newfrag->size == this->ofs) { in jffs2_add_full_dnode_to_fraglist()
220 this->size = (this->ofs + this->size) - (newfrag->ofs + newfrag->size); in jffs2_add_full_dnode_to_fraglist()
221 this->ofs = newfrag->ofs + newfrag->size; in jffs2_add_full_dnode_to_fraglist()
231 struct jffs2_node_frag *this = *list; in jffs2_truncate_fraglist() local
232 *list = this->next; in jffs2_truncate_fraglist()
233 D1(printk(KERN_DEBUG "Removing frag 0x%08x-0x%08x\n", this->ofs, this->ofs+this->size)); in jffs2_truncate_fraglist()
234 jffs2_obsolete_node_frag(c, this); in jffs2_truncate_fraglist()