fix kmem_cache_create compiling error.
This commit is contained in:
		
							parent
							
								
									a3e583faac
								
							
						
					
					
						commit
						04660bc897
					
				
							
								
								
									
										9
									
								
								inode.c
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								inode.c
									
									
									
									
									
								
							@ -291,10 +291,9 @@ static struct file_system_type fpgafs_type = {
 | 
			
		||||
	.kill_sb = kill_anon_super
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static void fpgafs_init_once(void *p, struct kmem_cache * cachep,
 | 
			
		||||
                            unsigned long flags)
 | 
			
		||||
static void fpgafs_init_once(void *p)
 | 
			
		||||
{
 | 
			
		||||
  struct fpgafs_inode_info *fsi = p;
 | 
			
		||||
	struct fpgafs_inode_info *fsi = p;
 | 
			
		||||
	inode_init_once(&fsi->vfs_inode);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -302,8 +301,8 @@ static void fpgafs_init_once(void *p, struct kmem_cache * cachep,
 | 
			
		||||
int __init fpgafs_init(void)
 | 
			
		||||
{
 | 
			
		||||
	fpgafs_inode_cache = kmem_cache_create("fpgafs_inode_cache",
 | 
			
		||||
	               sizeof(struct fpgafs_inode_info), 0,
 | 
			
		||||
	               SLAB_HWCACHE_ALIGN, fpgafs_init_once, NULL);
 | 
			
		||||
	                         sizeof(struct fpgafs_inode_info), 0,
 | 
			
		||||
	                      SLAB_HWCACHE_ALIGN, (void *)&fpgafs_init_once);
 | 
			
		||||
	if(!fpgafs_inode_cache)
 | 
			
		||||
		return -ENOMEM;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user