]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/pagemap: Add a refcounted drm_pagemap backpointer to struct drm_pagemap_zdd
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Fri, 19 Dec 2025 11:33:01 +0000 (12:33 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 23 Dec 2025 08:36:29 +0000 (09:36 +0100)
commit565477dbca6eca0cfa3f6fefede3f6eb1e6e09b3
tree0cf59b071909969cd04012f56c8ec94396c8fdb1
parenta599b98607decdc899630fc99a3a2847f6b72965
drm/pagemap: Add a refcounted drm_pagemap backpointer to struct drm_pagemap_zdd

To be able to keep track of drm_pagemap usage, add a refcounted
backpointer to struct drm_pagemap_zdd. This will keep the drm_pagemap
reference count from dropping to zero as long as there are drm_pagemap
pages present in a CPU address space.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Acked-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> # For merging through drm-xe.
Link: https://patch.msgid.link/20251219113320.183860-6-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/drm_pagemap.c