From 6539b7dc08a7eae4d52922ac7ec20a3093138219 Mon Sep 17 00:00:00 2001 From: Evgeniy Polyakov Date: Wed, 21 Dec 2011 04:01:09 +0400 Subject: [PATCH] Simplify inode cache allocation - it does not need constructor --- fs/pohmelfs/super.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fs/pohmelfs/super.c b/fs/pohmelfs/super.c index 3902fa23794..156e556a6d8 100644 --- a/fs/pohmelfs/super.c +++ b/fs/pohmelfs/super.c @@ -613,11 +613,7 @@ static int pohmelfs_init_cache(void) { int err = -ENOMEM; - pohmelfs_inode_cache = kmem_cache_create("pohmelfs_inode", - sizeof(struct pohmelfs_inode), - __alignof__(struct pohmelfs_inode), - (SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD), - pohmelfs_init_inode_once); + pohmelfs_inode_cache = kmem_cache_create(pohmelfs_inode, (SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD)); if (!pohmelfs_inode_cache) goto err_out_exit; -- 2.11.4.GIT