drm/ttm: drop evicted from ttm_bo.

This was unused.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200917064132.148521-3-airlied@gmail.com
This commit is contained in:
Dave Airlie 2020-09-17 16:13:03 +10:00
Родитель e46f468fef
Коммит 4856e5aa0e
2 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -298,8 +298,6 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo,
}
moved:
bo->evicted = false;
ctx->bytes_moved += bo->num_pages << PAGE_SHIFT;
return 0;
@ -638,9 +636,7 @@ static int ttm_bo_evict(struct ttm_buffer_object *bo,
if (ret != -ERESTARTSYS)
pr_err("Buffer eviction failed\n");
ttm_resource_free(bo, &evict_mem);
goto out;
}
bo->evicted = true;
out:
return ret;
}

Просмотреть файл

@ -141,7 +141,6 @@ struct ttm_buffer_object {
struct ttm_resource mem;
struct file *persistent_swap_storage;
struct ttm_tt *ttm;
bool evicted;
bool deleted;
/**