drm/i915: drop unneeded make_unshrinkable in free_object
authorMatthew Auld <matthew.auld@intel.com>
Mon, 18 Oct 2021 09:10:51 +0000 (10:10 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 22 Oct 2021 12:19:24 +0000 (13:19 +0100)
commit893f11f0c73365b31068081ffa3e67af5cd474e7
treea1a6e06c55c4218efeb7ee318fc6f65d87a23e90
parent5926ff80c9035638ed8ff6ee1f820392248270e7
drm/i915: drop unneeded make_unshrinkable in free_object

The comment here is no longer accurate, since the current shrinker code
requires a full ref before touching any objects. Also unset_pages()
should already do the required make_unshrinkable() for us, if needed,
which is also nicely balanced with set_pages().

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211018091055.1998191-4-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/i915_gem_object.c