OSDN Git Service

[media] v4l: vb2-memops: use vma slab when vma allocation
authorKyongHo Cho <pullip.cho@samsung.com>
Thu, 5 Feb 2015 05:52:42 +0000 (02:52 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 8 Apr 2015 10:56:52 +0000 (07:56 -0300)
commit5ed1c328ea077d70e1ebcd5188dc77cdc754df3a
tree7ebf0442acf6a533b2a13587abebd70cb3c0ff40
parentcc4e8c3dc95369c08615a4151bce8506b00356d9
[media] v4l: vb2-memops: use vma slab when vma allocation

The slab for vm_area_struct which is vm_area_cachep is already prepared
for the general use. Instead of kmalloc() for the vma copy for userptr,
allocation from vm_area_cachep is more beneficial.

CC: Hans Verkuil <hans.verkuil@cisco.com>
CC: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-memops.c