Lines Matching refs:fn
63 struct jffs2_full_dnode *fn; in jffs2_write_dnode() local
85 fn = jffs2_alloc_full_dnode(); in jffs2_write_dnode()
86 if (!fn) in jffs2_write_dnode()
161 jffs2_free_full_dnode(fn); in jffs2_write_dnode()
176 fn->raw = jffs2_add_physical_node_ref(c, flash_ofs, PAD(sizeof(*ri)+datalen), f->inocache); in jffs2_write_dnode()
177 if (IS_ERR(fn->raw)) { in jffs2_write_dnode()
178 void *hold_err = fn->raw; in jffs2_write_dnode()
180 jffs2_free_full_dnode(fn); in jffs2_write_dnode()
183 fn->ofs = je32_to_cpu(ri->offset); in jffs2_write_dnode()
184 fn->size = je32_to_cpu(ri->dsize); in jffs2_write_dnode()
185 fn->frags = 0; in jffs2_write_dnode()
196 return fn; in jffs2_write_dnode()
341 struct jffs2_full_dnode *fn; in jffs2_write_inode_range() local
379 fn = jffs2_write_dnode(c, f, ri, comprbuf, cdatalen, ALLOC_NORETRY); in jffs2_write_inode_range()
383 if (IS_ERR(fn)) { in jffs2_write_inode_range()
384 ret = PTR_ERR(fn); in jffs2_write_inode_range()
395 ret = jffs2_add_full_dnode_to_inode(c, f, fn); in jffs2_write_inode_range()
404 jffs2_mark_node_obsolete(c, fn->raw); in jffs2_write_inode_range()
405 jffs2_free_full_dnode(fn); in jffs2_write_inode_range()
431 struct jffs2_full_dnode *fn; in jffs2_do_create() local
450 fn = jffs2_write_dnode(c, f, ri, NULL, 0, ALLOC_NORMAL); in jffs2_do_create()
455 if (IS_ERR(fn)) { in jffs2_do_create()
460 return PTR_ERR(fn); in jffs2_do_create()
465 f->metadata = fn; in jffs2_do_create()