drm/i915/shrinker: Restrict vmap purge to objects with vmaps
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Apr 2016 11:11:12 +0000 (12:11 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Apr 2016 16:12:16 +0000 (17:12 +0100)
commiteae2c43b1233f81f594d1eb5fd06b897bb18b629
treedfeadbf492274ae9c31ccc6918152c2c52fd9795
parent0a798eb92e6dcc1cba45d13d7b75a523e5d0fc4c
drm/i915/shrinker: Restrict vmap purge to objects with vmaps

When called because we have run out of vmap address space, we only need
to recover objects that have vmappings and not all.

v2: Start using is_vmalloc_addr()

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1460113874-17366-5-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_shrinker.c