drm: Unconditionally do the range check in drm_mm_scan_add_block()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Dec 2016 08:36:31 +0000 (08:36 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 28 Dec 2016 10:50:28 +0000 (11:50 +0100)
commit2c4b389518fbe552188928aadcd3815d5116a05c
tree741bd09ab8f830f5a9cb984ce623f0a4595507fd
parent4a6c156f56beaaf83102c8b29baeef070c697093
drm: Unconditionally do the range check in drm_mm_scan_add_block()

Doing the check is trivial (low cost in comparison to overall eviction)
and helps simplify the code.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161222083641.2691-29-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_mm.c
drivers/gpu/drm/i915/i915_gem_evict.c
include/drm/drm_mm.h