Skip to content

Commit 79ea35b

Browse files
author
Al Viro
committed
don't open-code file_count()
Signed-off-by: Al Viro <[email protected]>
1 parent 1caf7a7 commit 79ea35b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/i915_gem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4354,7 +4354,7 @@ static bool discard_backing_storage(struct drm_i915_gem_object *obj)
43544354
* acquiring such a reference whilst we are in the middle of
43554355
* freeing the object.
43564356
*/
4357-
return atomic_long_read(&obj->base.filp->f_count) == 1;
4357+
return file_count(obj->base.filp) == 1;
43584358
}
43594359

43604360
static void __i915_gem_free_objects(struct drm_i915_private *i915,

0 commit comments

Comments
 (0)