Lines Matching refs:fn

55 				      struct inode *indeo, struct jffs2_full_dnode *fn,
58 struct inode *inode, struct jffs2_full_dnode *fn,
110 struct jffs2_full_dnode *fn = NULL; in jffs2_garbage_collect_pass() local
224 fn = f->metadata; in jffs2_garbage_collect_pass()
225 ret = jffs2_garbage_collect_metadata(c, jeb, inode, fn); in jffs2_garbage_collect_pass()
231 fn = frag->node; in jffs2_garbage_collect_pass()
239 if (fn) { in jffs2_garbage_collect_pass()
243 ret = jffs2_garbage_collect_hole(c, jeb, inode, fn, start, end); in jffs2_garbage_collect_pass()
246 ret = jffs2_garbage_collect_dnode(c, jeb, inode, fn, start, end); in jffs2_garbage_collect_pass()
293 struct inode *inode, struct jffs2_full_dnode *fn) in jffs2_garbage_collect_metadata() argument
311 mdatalen = fn->size; in jffs2_garbage_collect_metadata()
312 mdata = kmalloc(fn->size, GFP_KERNEL); in jffs2_garbage_collect_metadata()
317 ret = jffs2_read_dnode(c, fn, mdata, 0, mdatalen); in jffs2_garbage_collect_metadata()
363 jffs2_mark_node_obsolete(c, fn->raw); in jffs2_garbage_collect_metadata()
364 jffs2_free_full_dnode(fn); in jffs2_garbage_collect_metadata()
442 struct inode *inode, struct jffs2_full_dnode *fn, in jffs2_garbage_collect_hole() argument
457 if(fn->frags > 1) { in jffs2_garbage_collect_hole()
462 ret = c->mtd->read(c->mtd, fn->raw->flash_offset & ~3, sizeof(ri), &readlen, (char *)&ri); in jffs2_garbage_collect_hole()
469 fn->raw->flash_offset & ~3, ri.nodetype, JFFS2_NODETYPE_INODE); in jffs2_garbage_collect_hole()
474 fn->raw->flash_offset & ~3, ri.totlen, sizeof(ri)); in jffs2_garbage_collect_hole()
480 fn->raw->flash_offset & ~3, ri.node_crc, crc); in jffs2_garbage_collect_hole()
487 …printk(KERN_WARNING "jffs2_garbage_collect_hole: Node 0x%08x wasn't a hole node!\n", fn->raw->flas… in jffs2_garbage_collect_hole()
544 D1(if(fn->frags <= 1) { in jffs2_garbage_collect_hole()
546 fn->frags, ri.version, f->highest_version, ri.ino); in jffs2_garbage_collect_hole()
550 if (frag->ofs > fn->size + fn->ofs) in jffs2_garbage_collect_hole()
552 if (frag->node == fn) { in jffs2_garbage_collect_hole()
555 fn->frags--; in jffs2_garbage_collect_hole()
558 if (fn->frags) { in jffs2_garbage_collect_hole()
567 jffs2_mark_node_obsolete(c, fn->raw); in jffs2_garbage_collect_hole()
568 jffs2_free_full_dnode(fn); in jffs2_garbage_collect_hole()
574 struct inode *inode, struct jffs2_full_dnode *fn, in jffs2_garbage_collect_dnode() argument
606 …if(c->nr_free_blocks + c->nr_erasing_blocks > JFFS2_RESERVED_BLOCKS_GCMERGE - (fn->raw->next_phys?… in jffs2_garbage_collect_dnode()