]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/shrinker: Account for unshrinkable unbound pages
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Apr 2016 13:46:41 +0000 (14:46 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Apr 2016 10:11:16 +0000 (11:11 +0100)
commit6a76e28e27617acc8fc3f7e299f0fff4462358e2
tree53b5bb3bc9aaba073e2dce7f6e63f5d1e47b94c1
parentf016b4c18043c4e8b372559aa4b3a469c5525ba3
drm/i915/shrinker: Account for unshrinkable unbound pages

Since we only attempt to purge an object if can_release_pages() report
true, we should also only add it to the count of potential recoverable
pages when can_release_pages() is true.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Akash Goel <akash.goel@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1459777603-23618-2-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem_shrinker.c