mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
freevxfs: fix lack of inode initialization
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>
This commit is contained in:
parent
263040a1e7
commit
f2fe2fa1fb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user