freevxfs: hp-ux support. ( 1cce17017970c07) patchset 2/4
this is far more important and I decided that it is enough to use inode_init_once() in alloc_inode() because this is the only one place which uses kmem_cache_alloc() thus the callback for kmem_cache_create() is not required.
Quoted 1 line
From
36de33b8a96c5a1df89dc5b0b01aaa2f2ab44b7dMon Sep 17 00:00:00 2001
From: =?UTF-8?q?Krzysztof=20B=C5=82aszkowski?= <[email protected]>
Date: Fri, 10 Jun 2016 13:13:31 +0200
Subject: [PATCH 2/4] fix lack of inode initialization
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
there is nothing worse than just allocated inode without being initialized _once()
Signed-off-by Krzysztof Błaszkowski <[email protected]>
--- fs/freevxfs/vxfs_super.c | 1 + 1 file changed, 1 insertion(+)
fs/freevxfs/vxfs_super.c +1 -0
@@ -127,6 +127,7 @@ static struct inode *vxfs_alloc_inode(struct super_block *sb) vi =kmem_cache_alloc (vxfs_inode_cachep,GFP_KERNEL );if (!vi)return NULL ; +inode_init_once (&vi->vfs_inode);return &vi->vfs_inode; }
Signature · 6 lines
2.8.3 -- Krzysztof Blaszkowski