mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
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
This commit is contained in:
parent
f08ceb71c5
commit
acee19f998
|
|
@ -1208,9 +1208,9 @@ const struct ttm_lru_walk_ops ttm_swap_ops = {
|
|||
* @man: The resource manager whose resources / buffer objects are
|
||||
* goint to be swapped out.
|
||||
* @gfp_flags: The gfp flags used for shmem page allocations.
|
||||
* @target: The desired number of bytes to swap out.
|
||||
* @target: The desired number of pages to swap out.
|
||||
*
|
||||
* Return: The number of bytes actually swapped out, or negative error code
|
||||
* Return: The number of pages actually swapped out, or negative error code
|
||||
* on error.
|
||||
*/
|
||||
s64 ttm_bo_swapout(struct ttm_device *bdev, struct ttm_operation_ctx *ctx,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user