We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1caf7a7 commit 79ea35bCopy full SHA for 79ea35b
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
4355
* freeing the object.
4356
*/
4357
- return atomic_long_read(&obj->base.filp->f_count) == 1;
+ return file_count(obj->base.filp) == 1;
4358
}
4359
4360
static void __i915_gem_free_objects(struct drm_i915_private *i915,
0 commit comments