Lines Matching refs:ref
188 struct jffs2_raw_node_ref **p, *ref; in jffs2_prealloc_raw_node_refs() local
194 ref = *p; in jffs2_prealloc_raw_node_refs()
199 if (ref && ref->flash_offset != REF_EMPTY_NODE) in jffs2_prealloc_raw_node_refs()
200 ref++; in jffs2_prealloc_raw_node_refs()
203 if (!ref) { in jffs2_prealloc_raw_node_refs()
205 ref = *p = jffs2_alloc_refblock(); in jffs2_prealloc_raw_node_refs()
206 if (!ref) in jffs2_prealloc_raw_node_refs()
209 if (ref->flash_offset == REF_LINK_NODE) { in jffs2_prealloc_raw_node_refs()
210 p = &ref->next_in_ino; in jffs2_prealloc_raw_node_refs()
211 ref = *p; in jffs2_prealloc_raw_node_refs()
215 ref++; in jffs2_prealloc_raw_node_refs()
283 struct jffs2_xattr_ref *ref; in jffs2_alloc_xattr_ref() local
284 ref = kmem_cache_zalloc(xattr_ref_cache, GFP_KERNEL); in jffs2_alloc_xattr_ref()
285 dbg_memalloc("%p\n", ref); in jffs2_alloc_xattr_ref()
286 if (!ref) in jffs2_alloc_xattr_ref()
289 ref->class = RAWNODE_CLASS_XATTR_REF; in jffs2_alloc_xattr_ref()
290 ref->node = (void *)ref; in jffs2_alloc_xattr_ref()
291 return ref; in jffs2_alloc_xattr_ref()
294 void jffs2_free_xattr_ref(struct jffs2_xattr_ref *ref) in jffs2_free_xattr_ref() argument
296 dbg_memalloc("%p\n", ref); in jffs2_free_xattr_ref()
297 kmem_cache_free(xattr_ref_cache, ref); in jffs2_free_xattr_ref()