aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 8558e81fdc2a..3c724cc949a5 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -4354,7 +4354,7 @@ static bool discard_backing_storage(struct drm_i915_gem_object *obj)
4354 * acquiring such a reference whilst we are in the middle of 4354 * acquiring such a reference whilst we are in the middle of
4355 * freeing the object. 4355 * freeing the object.
4356 */ 4356 */
4357 return atomic_long_read(&obj->base.filp->f_count) == 1; 4357 return file_count(obj->base.filp) == 1;
4358} 4358}
4359 4359
4360static void __i915_gem_free_objects(struct drm_i915_private *i915, 4360static void __i915_gem_free_objects(struct drm_i915_private *i915,