diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 93b4232ee280..c8ecc75aa79b 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -1478,7 +1478,7 @@ i915_gem_object_put_pages(struct drm_gem_object *obj) | |||
1478 | i915_gem_object_save_bit_17_swizzle(obj); | 1478 | i915_gem_object_save_bit_17_swizzle(obj); |
1479 | 1479 | ||
1480 | if (obj_priv->madv == I915_MADV_DONTNEED) | 1480 | if (obj_priv->madv == I915_MADV_DONTNEED) |
1481 | obj_priv->dirty = 0; | 1481 | obj_priv->dirty = 0; |
1482 | 1482 | ||
1483 | for (i = 0; i < page_count; i++) { | 1483 | for (i = 0; i < page_count; i++) { |
1484 | if (obj_priv->pages[i] == NULL) | 1484 | if (obj_priv->pages[i] == NULL) |
@@ -1488,7 +1488,7 @@ i915_gem_object_put_pages(struct drm_gem_object *obj) | |||
1488 | set_page_dirty(obj_priv->pages[i]); | 1488 | set_page_dirty(obj_priv->pages[i]); |
1489 | 1489 | ||
1490 | if (obj_priv->madv == I915_MADV_WILLNEED) | 1490 | if (obj_priv->madv == I915_MADV_WILLNEED) |
1491 | mark_page_accessed(obj_priv->pages[i]); | 1491 | mark_page_accessed(obj_priv->pages[i]); |
1492 | 1492 | ||
1493 | page_cache_release(obj_priv->pages[i]); | 1493 | page_cache_release(obj_priv->pages[i]); |
1494 | } | 1494 | } |