Re: [PATCH v18 10/26] drm/shmem-helper: Use refcount_t for vmap_use_count

2023-11-24 Thread Maxime Ripard
On Mon, 30 Oct 2023 02:01:49 +0300, Dmitry Osipenko wrote: > Use refcount_t helper for vmap_use_count to make refcounting consistent > with pages_use_count and pages_pin_count that use refcount_t. This also > makes vmapping to benefit from the refcount_t's overflow checks. > > Reviewed-by: Boris B

[PATCH v18 10/26] drm/shmem-helper: Use refcount_t for vmap_use_count

2023-10-29 Thread Dmitry Osipenko
Use refcount_t helper for vmap_use_count to make refcounting consistent with pages_use_count and pages_pin_count that use refcount_t. This also makes vmapping to benefit from the refcount_t's overflow checks. Reviewed-by: Boris Brezillon Suggested-by: Boris Brezillon Signed-off-by: Dmitry Osipen