drm/vgem: Move get_pages to gem_create
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Mar 2016 09:40:50 +0000 (11:40 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 Apr 2016 10:58:40 +0000 (12:58 +0200)
commit7f340a26f4769a49fb51bfc023ca651dfe16042e
tree0868427c45f430f785e44c430e5d91bbe532c073
parente34274fd2aa84fb4b609e26af18507449e8feaca
drm/vgem: Move get_pages to gem_create

vgem doesn't have a shrinker or anything like that and drops backing
storage only at object_free time. There's no use in trying to be
clever and allocating backing storage delayed, it only causes trouble
by requiring locking.

Instead grab pages when we allocate the object right away.

v2: Fix compiling.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1459330852-27668-12-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/vgem/vgem_drv.c