Skip to content

Commit dd79998

Browse files
David WoodhouseDavid Woodhouse
authored andcommitted
jffs2: Use SLAB_HWCACHE_ALIGN for jffs2_raw_{dirent,inode} slabs
We may end up doing DMA to/from these. Until the new MTD API fixes the issues, this should stop things from falling over. Original idea from Gilles Casse <list@gcasse.net> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent 894572a commit dd79998

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/jffs2/malloc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ int __init jffs2_create_slab_caches(void)
3939

4040
raw_dirent_slab = kmem_cache_create("jffs2_raw_dirent",
4141
sizeof(struct jffs2_raw_dirent),
42-
0, 0, NULL);
42+
0, SLAB_HWCACHE_ALIGN, NULL);
4343
if (!raw_dirent_slab)
4444
goto err;
4545

4646
raw_inode_slab = kmem_cache_create("jffs2_raw_inode",
4747
sizeof(struct jffs2_raw_inode),
48-
0, 0, NULL);
48+
0, SLAB_HWCACHE_ALIGN, NULL);
4949
if (!raw_inode_slab)
5050
goto err;
5151

0 commit comments

Comments
 (0)