fs: allocate inode by using alloc_inode_sb()
[sfrench/cifs-2.6.git] / fs / zonefs / super.c
index b76dfb310ab650c24adfb2b6f3f329928e61a1fc..11682cd7045d405939d1f952657e3e58783063f7 100644 (file)
@@ -1137,7 +1137,7 @@ static struct inode *zonefs_alloc_inode(struct super_block *sb)
 {
        struct zonefs_inode_info *zi;
 
-       zi = kmem_cache_alloc(zonefs_inode_cachep, GFP_KERNEL);
+       zi = alloc_inode_sb(sb, zonefs_inode_cachep, GFP_KERNEL);
        if (!zi)
                return NULL;