fs: allocate inode by using alloc_inode_sb()
[sfrench/cifs-2.6.git] / fs / btrfs / inode.c
index 5bbea5ec31fc5311487f0318146b93aa99fe96eb..dcc2102cb54667a6fd6d616f689a6d72dfd7bfaf 100644 (file)
@@ -8787,7 +8787,7 @@ struct inode *btrfs_alloc_inode(struct super_block *sb)
        struct btrfs_inode *ei;
        struct inode *inode;
 
-       ei = kmem_cache_alloc(btrfs_inode_cachep, GFP_KERNEL);
+       ei = alloc_inode_sb(sb, btrfs_inode_cachep, GFP_KERNEL);
        if (!ei)
                return NULL;