From cfb9a990c614cb262bcf59f5ff1fc3c7a3a8e07c Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 7 Apr 2022 06:46:27 +0000 Subject: [PATCH] drm/i915: don't call free_mmap_offset when purging From Matthew Auld d3f67ceaeb3f7ddabad1d6e8da29e44fd2634f65 in linux 5.15.y/5.15.27 4c2602ba8d74c35d550ed3d518809c697de08d88 in mainline linux --- sys/dev/pci/drm/i915/gem/i915_gem_pages.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/dev/pci/drm/i915/gem/i915_gem_pages.c b/sys/dev/pci/drm/i915/gem/i915_gem_pages.c index c3eda20c9b5..8a338bafd34 100644 --- a/sys/dev/pci/drm/i915/gem/i915_gem_pages.c +++ b/sys/dev/pci/drm/i915/gem/i915_gem_pages.c @@ -162,7 +162,6 @@ retry: /* Immediately discard the backing storage */ void i915_gem_object_truncate(struct drm_i915_gem_object *obj) { - drm_gem_free_mmap_offset(&obj->base); if (obj->ops->truncate) obj->ops->truncate(obj); } -- 2.20.1