Re: [PATCH v18 06/26] drm/shmem-helper: Add and use pages_pin_count

2023-11-24 Thread Maxime Ripard
On Mon, 30 Oct 2023 02:01:45 +0300, Dmitry Osipenko wrote: > Add separate pages_pin_count for tracking of whether drm-shmem pages are > moveable or not. With the addition of memory shrinker support to drm-shmem, > the pages_use_count will no longer determine whether pages are hard-pinned > in memor

[PATCH v18 06/26] drm/shmem-helper: Add and use pages_pin_count

2023-10-29 Thread Dmitry Osipenko
Add separate pages_pin_count for tracking of whether drm-shmem pages are moveable or not. With the addition of memory shrinker support to drm-shmem, the pages_use_count will no longer determine whether pages are hard-pinned in memory, but whether pages exist and are soft-pinned (and could be swappe