Please revert this patch: vm_area_cachep is not exported, so you cannot use
this in a module.
This reverts commit
5ed1c328ea077d70e1ebcd5188dc77cdc754df3a.
Reported-by: Hans Verkuil <hverkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
{
struct vm_area_struct *vma_copy;
- vma_copy = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL);
+ vma_copy = kmalloc(sizeof(*vma_copy), GFP_KERNEL);
if (vma_copy == NULL)
return NULL;
if (vma->vm_file)
fput(vma->vm_file);
- kmem_cache_free(vm_area_cachep, vma);
+ kfree(vma);
}
EXPORT_SYMBOL_GPL(vb2_put_vma);