Skip to content

Commit

Permalink
jffs2: Use SLAB_HWCACHE_ALIGN for jffs2_raw_{dirent,inode} slabs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Sep 19, 2009
1 parent 894572a commit dd79998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/jffs2/malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ int __init jffs2_create_slab_caches(void)

raw_dirent_slab = kmem_cache_create("jffs2_raw_dirent",
sizeof(struct jffs2_raw_dirent),
0, 0, NULL);
0, SLAB_HWCACHE_ALIGN, NULL);
if (!raw_dirent_slab)
goto err;

raw_inode_slab = kmem_cache_create("jffs2_raw_inode",
sizeof(struct jffs2_raw_inode),
0, 0, NULL);
0, SLAB_HWCACHE_ALIGN, NULL);
if (!raw_inode_slab)
goto err;

Expand Down

0 comments on commit dd79998

Please sign in to comment.