Lines Matching refs:ref
204 struct jffs2_raw_node_ref **p, *ref; in jffs2_prealloc_raw_node_refs() local
210 ref = *p; in jffs2_prealloc_raw_node_refs()
215 if (ref && ref->flash_offset != REF_EMPTY_NODE) in jffs2_prealloc_raw_node_refs()
216 ref++; in jffs2_prealloc_raw_node_refs()
219 if (!ref) { in jffs2_prealloc_raw_node_refs()
221 ref = *p = jffs2_alloc_refblock(); in jffs2_prealloc_raw_node_refs()
222 if (!ref) in jffs2_prealloc_raw_node_refs()
225 if (ref->flash_offset == REF_LINK_NODE) { in jffs2_prealloc_raw_node_refs()
226 p = &ref->next_in_ino; in jffs2_prealloc_raw_node_refs()
227 ref = *p; in jffs2_prealloc_raw_node_refs()
231 ref++; in jffs2_prealloc_raw_node_refs()
299 struct jffs2_xattr_ref *ref; in jffs2_alloc_xattr_ref() local
300 ref = kmem_cache_zalloc(xattr_ref_cache, GFP_KERNEL); in jffs2_alloc_xattr_ref()
301 dbg_memalloc("%p\n", ref); in jffs2_alloc_xattr_ref()
302 if (!ref) in jffs2_alloc_xattr_ref()
305 ref->class = RAWNODE_CLASS_XATTR_REF; in jffs2_alloc_xattr_ref()
306 ref->node = (void *)ref; in jffs2_alloc_xattr_ref()
307 return ref; in jffs2_alloc_xattr_ref()
310 void jffs2_free_xattr_ref(struct jffs2_xattr_ref *ref) in jffs2_free_xattr_ref() argument
312 dbg_memalloc("%p\n", ref); in jffs2_free_xattr_ref()
313 kmem_cache_free(xattr_ref_cache, ref); in jffs2_free_xattr_ref()