freevxfs: fix lack of inode initialization
authorKrzysztof Błaszkowski <kb@sysmikro.com.pl>
Sun, 12 Jun 2016 17:26:04 +0000 (19:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 12 Jun 2016 17:35:13 +0000 (19:35 +0200)
There is nothing worse than just allocated inode without being
initialized _once().

Signed-off-by: Krzysztof Błaszkowski <kb@sysmikro.com.pl>
Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/freevxfs/vxfs_super.c

index e5eef14..455ce5b 100644 (file)
@@ -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;
 }