-
-#ifdef CONFIG_JFFS2_FS_XATTR
-struct jffs2_xattr_datum *jffs2_alloc_xattr_datum(void)
-{
- struct jffs2_xattr_datum *xd;
- xd = kmem_cache_alloc(xattr_datum_cache, GFP_KERNEL);
- dbg_memalloc("%p\n", xd);
-
- memset(xd, 0, sizeof(struct jffs2_xattr_datum));
- xd->class = RAWNODE_CLASS_XATTR_DATUM;
- xd->node = (void *)xd;
- INIT_LIST_HEAD(&xd->xindex);
- return xd;
-}
-
-void jffs2_free_xattr_datum(struct jffs2_xattr_datum *xd)
-{
- dbg_memalloc("%p\n", xd);
- kmem_cache_free(xattr_datum_cache, xd);
-}
-
-struct jffs2_xattr_ref *jffs2_alloc_xattr_ref(void)
-{
- struct jffs2_xattr_ref *ref;
- ref = kmem_cache_alloc(xattr_ref_cache, GFP_KERNEL);
- dbg_memalloc("%p\n", ref);
-
- memset(ref, 0, sizeof(struct jffs2_xattr_ref));
- ref->class = RAWNODE_CLASS_XATTR_REF;
- ref->node = (void *)ref;
- return ref;
-}
-
-void jffs2_free_xattr_ref(struct jffs2_xattr_ref *ref)
-{
- dbg_memalloc("%p\n", ref);
- kmem_cache_free(xattr_ref_cache, ref);
-}
-#endif