/* Releases any remaining references on objects by this filp.  */
void drm_gem_release(struct drm_device *dev, struct drm_file *file_private)
/* Releases any remaining references on objects by this filp.  */
void drm_gem_release(struct drm_device *dev, struct drm_file *file_private)
{
	mutex_lock(&dev->struct_mutex);
	idr_for_each(&file_private->object_idr,
		     &drm_gem_object_release_handle, NULL);
	idr_destroy(&file_private->object_idr);
	mutex_unlock(&dev->struct_mutex);
}