aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jffs')
-rw-r--r--fs/jffs/inode-v23.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/jffs/inode-v23.c b/fs/jffs/inode-v23.c
index ffa49861d985..5a4519e834da 100644
--- a/fs/jffs/inode-v23.c
+++ b/fs/jffs/inode-v23.c
@@ -1812,15 +1812,17 @@ init_jffs_fs(void)
1812 } 1812 }
1813#endif 1813#endif
1814 fm_cache = kmem_cache_create("jffs_fm", sizeof(struct jffs_fm), 1814 fm_cache = kmem_cache_create("jffs_fm", sizeof(struct jffs_fm),
1815 0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 1815 0,
1816 NULL, NULL); 1816 SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD,
1817 NULL, NULL);
1817 if (!fm_cache) { 1818 if (!fm_cache) {
1818 return -ENOMEM; 1819 return -ENOMEM;
1819 } 1820 }
1820 1821
1821 node_cache = kmem_cache_create("jffs_node",sizeof(struct jffs_node), 1822 node_cache = kmem_cache_create("jffs_node",sizeof(struct jffs_node),
1822 0, SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 1823 0,
1823 NULL, NULL); 1824 SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD,
1825 NULL, NULL);
1824 if (!node_cache) { 1826 if (!node_cache) {
1825 kmem_cache_destroy(fm_cache); 1827 kmem_cache_destroy(fm_cache);
1826 return -ENOMEM; 1828 return -ENOMEM;