|
@@ -444,11 +444,15 @@ unacquire_none:
|
|
|
static int __init
|
|
static int __init
|
|
|
befs_init_inodecache(void)
|
|
befs_init_inodecache(void)
|
|
|
{
|
|
{
|
|
|
- befs_inode_cachep = kmem_cache_create("befs_inode_cache",
|
|
|
|
|
- sizeof (struct befs_inode_info),
|
|
|
|
|
- 0, (SLAB_RECLAIM_ACCOUNT|
|
|
|
|
|
- SLAB_MEM_SPREAD|SLAB_ACCOUNT),
|
|
|
|
|
- init_once);
|
|
|
|
|
|
|
+ befs_inode_cachep = kmem_cache_create_usercopy("befs_inode_cache",
|
|
|
|
|
+ sizeof(struct befs_inode_info), 0,
|
|
|
|
|
+ (SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD|
|
|
|
|
|
+ SLAB_ACCOUNT),
|
|
|
|
|
+ offsetof(struct befs_inode_info,
|
|
|
|
|
+ i_data.symlink),
|
|
|
|
|
+ sizeof_field(struct befs_inode_info,
|
|
|
|
|
+ i_data.symlink),
|
|
|
|
|
+ init_once);
|
|
|
if (befs_inode_cachep == NULL)
|
|
if (befs_inode_cachep == NULL)
|
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
|
|