mirror of
				https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
				synced 2025-11-04 16:52:06 +10:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									894572a363
								
							
						
					
					
						commit
						dd799983e9
					
				@ -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;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user