12 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
14 #include <linux/kernel.h>
15 #include <linux/slab.h>
29 #ifdef CONFIG_JFFS2_FS_XATTR
57 if (!tmp_dnode_info_slab)
63 if (!raw_node_ref_slab)
75 if (!inode_cache_slab)
78 #ifdef CONFIG_JFFS2_FS_XATTR
82 if (!xattr_datum_cache)
106 if(tmp_dnode_info_slab)
108 if(raw_node_ref_slab)
114 #ifdef CONFIG_JFFS2_FS_XATTR
115 if (xattr_datum_cache)
229 dbg_memalloc(
"Allocating new refblock linked from %p\n", p);
230 ref = *p = jffs2_alloc_refblock();
244 dbg_memalloc(
"Reserved %d refs for block @0x%08x, last_node is %p (%08x,%p)\n",
285 #ifdef CONFIG_JFFS2_FS_XATTR
289 xd = kmem_cache_zalloc(xattr_datum_cache,
GFP_KERNEL);
293 xd->
node = (
void *)xd;
294 INIT_LIST_HEAD(&xd->
xindex);
307 ref = kmem_cache_zalloc(xattr_ref_cache,
GFP_KERNEL);
311 ref->
node = (
void *)ref;