[PATCH v17 13/18] drm/shmem-helper: Add memory shrinker
Dmitry Osipenko
dmitry.osipenko at collabora.com
Thu Oct 5 17:28:17 UTC 2023
On 10/3/23 14:09, Boris Brezillon wrote:
> Unmap tends to refer to a VM related operation (removing a mapping in
> the CPU or GPU VM), so it's confusing too IMHO. What we do here is
> return pages to the shmem file logic, so they can be reclaimed.
>
> Given the drm_gem function doing that is called drm_gem_put_pages(),
> maybe rename it drm_gem_shmem_shrinker_put_pages_locked(), and rename
> drm_gem_shmem_swapin_locked() into
> drm_gem_shmem_shrinker_get_pages_locked(), to be consistent.
The swapin is a common term and function naming scheme among DRM
drivers. That name shouldn't be changed.
The drm_gem_shmem_shrinker_put_pages_locked() sounds okay, let's use it.
--
Best regards,
Dmitry
More information about the dri-devel
mailing list