Re: [PATCH v10 08/11] drm/shmem-helper: Add memory shrinker
From: Dmitry Osipenko
Date: Sun Feb 26 2023 - 23:34:59 EST
On 2/17/23 16:19, Thomas Zimmermann wrote:
>> +/**
>> + * drm_gem_shmem_swap_in() - Moves shmem GEM back to memory and enables
>> + * hardware access to the memory.
>
> Do we have a better name than _swap_in()? I suggest
> drm_gem_shmem_unevict(), which suggest that it's the inverse to _evict().
The canonical naming scheme used by TTM and other DRM drivers is
_swapin(), without the underscore. I'll use that variant in v11 for the
naming consistency with the rest of DRM code.
--
Best regards,
Dmitry