On 3/9/26 19:49, Thadeu Lima de Souza Cascardo wrote:
> Both the target parameter and return value of ttm_bo_swapout deal with
> pages, not bytes.
> 
> Reported-by: Tvrtko Ursulin <[email protected]>
> Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>

Acked-by: Christian König <[email protected]>

> ---
>  drivers/gpu/drm/ttm/ttm_bo.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
> index 
> 0765d69423d2f4028bf2effd21af53e117ee7a29..839ceb31135bc8e552f9add1357a64c6774aeee6
>  100644
> --- a/drivers/gpu/drm/ttm/ttm_bo.c
> +++ b/drivers/gpu/drm/ttm/ttm_bo.c
> @@ -1210,9 +1210,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,
> 
> ---
> base-commit: 1f318b96cc84d7c2ab792fcc0bfd42a7ca890681
> change-id: 20260309-ttm_bo_swapout_doc-b2cefcd5e62b
> 
> Best regards,

Reply via email to