diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_shrinker.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_shrinker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_shrinker.c b/drivers/gpu/drm/i915/i915_gem_shrinker.c index 58c1e592bbdb..d3c473ffb90a 100644 --- a/drivers/gpu/drm/i915/i915_gem_shrinker.c +++ b/drivers/gpu/drm/i915/i915_gem_shrinker.c | |||
@@ -52,7 +52,7 @@ static int num_vma_bound(struct drm_i915_gem_object *obj) | |||
52 | struct i915_vma *vma; | 52 | struct i915_vma *vma; |
53 | int count = 0; | 53 | int count = 0; |
54 | 54 | ||
55 | list_for_each_entry(vma, &obj->vma_list, vma_link) { | 55 | list_for_each_entry(vma, &obj->vma_list, obj_link) { |
56 | if (drm_mm_node_allocated(&vma->node)) | 56 | if (drm_mm_node_allocated(&vma->node)) |
57 | count++; | 57 | count++; |
58 | if (vma->pin_count) | 58 | if (vma->pin_count) |
@@ -176,7 +176,7 @@ i915_gem_shrink(struct drm_i915_private *dev_priv, | |||
176 | 176 | ||
177 | /* For the unbound phase, this should be a no-op! */ | 177 | /* For the unbound phase, this should be a no-op! */ |
178 | list_for_each_entry_safe(vma, v, | 178 | list_for_each_entry_safe(vma, v, |
179 | &obj->vma_list, vma_link) | 179 | &obj->vma_list, obj_link) |
180 | if (i915_vma_unbind(vma)) | 180 | if (i915_vma_unbind(vma)) |
181 | break; | 181 | break; |
182 | 182 | ||