Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/ttm: document that ttm_bo_swapout deals with pages

Both the target parameter and return value of ttm_bo_swapout deal with
pages, not bytes.

Reported-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>
Link: https://lore.kernel.org/r/20260309-ttm_bo_swapout_doc-v1-1-eeb08176a00b@igalia.com

authored by

Thadeu Lima de Souza Cascardo and committed by
Tvrtko Ursulin
acee19f9 f08ceb71

+2 -2
+2 -2
drivers/gpu/drm/ttm/ttm_bo.c
··· 1208 1208 * @man: The resource manager whose resources / buffer objects are 1209 1209 * goint to be swapped out. 1210 1210 * @gfp_flags: The gfp flags used for shmem page allocations. 1211 - * @target: The desired number of bytes to swap out. 1211 + * @target: The desired number of pages to swap out. 1212 1212 * 1213 - * Return: The number of bytes actually swapped out, or negative error code 1213 + * Return: The number of pages actually swapped out, or negative error code 1214 1214 * on error. 1215 1215 */ 1216 1216 s64 ttm_bo_swapout(struct ttm_device *bdev, struct ttm_operation_ctx *ctx,