@@ -58,13 +58,13 @@ static vm_fault_t ttm_bo_vm_fault_idle(struct ttm_buffer_object *bo,
58
58
if (vmf -> flags & FAULT_FLAG_RETRY_NOWAIT )
59
59
return VM_FAULT_RETRY ;
60
60
61
- ttm_bo_get ( bo );
61
+ drm_gem_object_get ( & bo -> base );
62
62
mmap_read_unlock (vmf -> vma -> vm_mm );
63
63
(void )dma_resv_wait_timeout (bo -> base .resv ,
64
64
DMA_RESV_USAGE_KERNEL , true,
65
65
MAX_SCHEDULE_TIMEOUT );
66
66
dma_resv_unlock (bo -> base .resv );
67
- ttm_bo_put ( bo );
67
+ drm_gem_object_put ( & bo -> base );
68
68
return VM_FAULT_RETRY ;
69
69
}
70
70
@@ -130,12 +130,12 @@ vm_fault_t ttm_bo_vm_reserve(struct ttm_buffer_object *bo,
130
130
*/
131
131
if (fault_flag_allow_retry_first (vmf -> flags )) {
132
132
if (!(vmf -> flags & FAULT_FLAG_RETRY_NOWAIT )) {
133
- ttm_bo_get ( bo );
133
+ drm_gem_object_get ( & bo -> base );
134
134
mmap_read_unlock (vmf -> vma -> vm_mm );
135
135
if (!dma_resv_lock_interruptible (bo -> base .resv ,
136
136
NULL ))
137
137
dma_resv_unlock (bo -> base .resv );
138
- ttm_bo_put ( bo );
138
+ drm_gem_object_put ( & bo -> base );
139
139
}
140
140
141
141
return VM_FAULT_RETRY ;
@@ -353,15 +353,15 @@ void ttm_bo_vm_open(struct vm_area_struct *vma)
353
353
354
354
WARN_ON (bo -> bdev -> dev_mapping != vma -> vm_file -> f_mapping );
355
355
356
- ttm_bo_get ( bo );
356
+ drm_gem_object_get ( & bo -> base );
357
357
}
358
358
EXPORT_SYMBOL (ttm_bo_vm_open );
359
359
360
360
void ttm_bo_vm_close (struct vm_area_struct * vma )
361
361
{
362
362
struct ttm_buffer_object * bo = vma -> vm_private_data ;
363
363
364
- ttm_bo_put ( bo );
364
+ drm_gem_object_put ( & bo -> base );
365
365
vma -> vm_private_data = NULL ;
366
366
}
367
367
EXPORT_SYMBOL (ttm_bo_vm_close );
@@ -462,7 +462,7 @@ int ttm_bo_mmap_obj(struct vm_area_struct *vma, struct ttm_buffer_object *bo)
462
462
if (is_cow_mapping (vma -> vm_flags ))
463
463
return - EINVAL ;
464
464
465
- ttm_bo_get ( bo );
465
+ drm_gem_object_get ( & bo -> base );
466
466
467
467
/*
468
468
* Drivers may want to override the vm_ops field. Otherwise we
0 commit comments