]> Git Repo - linux.git/commitdiff
don't open-code file_count()
authorAl Viro <[email protected]>
Sat, 13 Apr 2019 00:38:01 +0000 (20:38 -0400)
committerAl Viro <[email protected]>
Thu, 2 May 2019 06:25:40 +0000 (02:25 -0400)
Signed-off-by: Al Viro <[email protected]>
drivers/gpu/drm/i915/i915_gem.c

index 8558e81fdc2af85dd52486b7c8d55580fe997373..3c724cc949a5fbb41e2f702e69f1c5d6767e1fe2 100644 (file)
@@ -4354,7 +4354,7 @@ static bool discard_backing_storage(struct drm_i915_gem_object *obj)
         * acquiring such a reference whilst we are in the middle of
         * freeing the object.
         */
-       return atomic_long_read(&obj->base.filp->f_count) == 1;
+       return file_count(obj->base.filp) == 1;
 }
 
 static void __i915_gem_free_objects(struct drm_i915_private *i915,
This page took 0.075483 seconds and 4 git commands to generate.