Commit 429e1fc1 authored by Lucas De Marchi's avatar Lucas De Marchi

drm/i915/gem: Make drop_pages() return bool

Commit e4e80625 ("drm/i915: Change shrink ordering to use locking
around unbinding.") changed the return type to int without changing the
return values or their meaning to "0 is success". Move it back to
boolean.
Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: default avatarNirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220503061556.513175-1-lucas.demarchi@intel.com
parent b499914e
...@@ -36,7 +36,7 @@ static bool can_release_pages(struct drm_i915_gem_object *obj) ...@@ -36,7 +36,7 @@ static bool can_release_pages(struct drm_i915_gem_object *obj)
return swap_available() || obj->mm.madv == I915_MADV_DONTNEED; return swap_available() || obj->mm.madv == I915_MADV_DONTNEED;
} }
static int drop_pages(struct drm_i915_gem_object *obj, static bool drop_pages(struct drm_i915_gem_object *obj,
unsigned long shrink, bool trylock_vm) unsigned long shrink, bool trylock_vm)
{ {
unsigned long flags; unsigned long flags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment