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

From: Maxime Ripard
Date: Fri Nov 24 2023 - 05:41:14 EST


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 memory, but whether pages exist and are soft-pinned (and could be swapped
> out). The pages_pin_count > 1 will hard-pin pages in memory.
>
> [ ... ]

Acked-by: Maxime Ripard <mripard@xxxxxxxxxx>

Thanks!
Maxime