fs: allocate inode by using alloc_inode_sb()
[sfrench/cifs-2.6.git] / fs / hugetlbfs / inode.c
index a7c6c7498be0b30bf6d1c17278d991f99319f832..171212bdaae6bb890ae375a44985a23e69773f97 100644 (file)
@@ -1110,7 +1110,7 @@ static struct inode *hugetlbfs_alloc_inode(struct super_block *sb)
 
        if (unlikely(!hugetlbfs_dec_free_inodes(sbinfo)))
                return NULL;
-       p = kmem_cache_alloc(hugetlbfs_inode_cachep, GFP_KERNEL);
+       p = alloc_inode_sb(sb, hugetlbfs_inode_cachep, GFP_KERNEL);
        if (unlikely(!p)) {
                hugetlbfs_inc_free_inodes(sbinfo);
                return NULL;