Commit 4856e5aa authored by Dave Airlie's avatar Dave Airlie
parent e46f468f
...@@ -298,8 +298,6 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo, ...@@ -298,8 +298,6 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo,
} }
moved: moved:
bo->evicted = false;
ctx->bytes_moved += bo->num_pages << PAGE_SHIFT; ctx->bytes_moved += bo->num_pages << PAGE_SHIFT;
return 0; return 0;
...@@ -638,9 +636,7 @@ static int ttm_bo_evict(struct ttm_buffer_object *bo, ...@@ -638,9 +636,7 @@ static int ttm_bo_evict(struct ttm_buffer_object *bo,
if (ret != -ERESTARTSYS) if (ret != -ERESTARTSYS)
pr_err("Buffer eviction failed\n"); pr_err("Buffer eviction failed\n");
ttm_resource_free(bo, &evict_mem); ttm_resource_free(bo, &evict_mem);
goto out;
} }
bo->evicted = true;
out: out:
return ret; return ret;
} }
......
...@@ -141,7 +141,6 @@ struct ttm_buffer_object { ...@@ -141,7 +141,6 @@ struct ttm_buffer_object {
struct ttm_resource mem; struct ttm_resource mem;
struct file *persistent_swap_storage; struct file *persistent_swap_storage;
struct ttm_tt *ttm; struct ttm_tt *ttm;
bool evicted;
bool deleted; bool deleted;
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment