|
@@ -170,7 +170,8 @@ void ttm_bo_add_to_lru(struct ttm_buffer_object *bo)
|
|
|
list_add_tail(&bo->lru, &man->lru[bo->priority]);
|
|
|
kref_get(&bo->list_kref);
|
|
|
|
|
|
- if (bo->ttm && !(bo->ttm->page_flags & TTM_PAGE_FLAG_SG)) {
|
|
|
+ if (bo->ttm && !(bo->ttm->page_flags &
|
|
|
+ (TTM_PAGE_FLAG_SG | TTM_PAGE_FLAG_SWAPPED))) {
|
|
|
list_add_tail(&bo->swap,
|
|
|
&bo->glob->swap_lru[bo->priority]);
|
|
|
kref_get(&bo->list_kref);
|