Lines Matching refs:ref
213 struct jffs2_raw_node_ref **p, *ref; in jffs2_prealloc_raw_node_refs() local
219 ref = *p; in jffs2_prealloc_raw_node_refs()
224 if (ref && ref->flash_offset != REF_EMPTY_NODE) in jffs2_prealloc_raw_node_refs()
225 ref++; in jffs2_prealloc_raw_node_refs()
228 if (!ref) { in jffs2_prealloc_raw_node_refs()
230 ref = *p = jffs2_alloc_refblock(); in jffs2_prealloc_raw_node_refs()
231 if (!ref) in jffs2_prealloc_raw_node_refs()
234 if (ref->flash_offset == REF_LINK_NODE) { in jffs2_prealloc_raw_node_refs()
235 p = &ref->next_in_ino; in jffs2_prealloc_raw_node_refs()
236 ref = *p; in jffs2_prealloc_raw_node_refs()
240 ref++; in jffs2_prealloc_raw_node_refs()
308 struct jffs2_xattr_ref *ref; in jffs2_alloc_xattr_ref() local
309 ref = kmem_cache_zalloc(xattr_ref_cache, GFP_KERNEL); in jffs2_alloc_xattr_ref()
310 dbg_memalloc("%p\n", ref); in jffs2_alloc_xattr_ref()
311 if (!ref) in jffs2_alloc_xattr_ref()
314 ref->class = RAWNODE_CLASS_XATTR_REF; in jffs2_alloc_xattr_ref()
315 ref->node = (void *)ref; in jffs2_alloc_xattr_ref()
316 return ref; in jffs2_alloc_xattr_ref()
319 void jffs2_free_xattr_ref(struct jffs2_xattr_ref *ref) in jffs2_free_xattr_ref() argument
321 dbg_memalloc("%p\n", ref); in jffs2_free_xattr_ref()
322 kmem_cache_free(xattr_ref_cache, ref); in jffs2_free_xattr_ref()