Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306976
b: refs/heads/master
c: a14917e
h: refs/heads/master
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed Mar 23, 2012
1 parent c3ac899 commit b593c68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 121d527a323f3fde313a8f522060ba859ee405b3
refs/heads/master: a14917eeb2cc160d13f4fddefe5f7f9c80953ce1
3 changes: 3 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,9 @@ i915_gem_object_truncate(struct drm_i915_gem_object *obj)
inode = obj->base.filp->f_path.dentry->d_inode;
shmem_truncate_range(inode, 0, (loff_t)-1);

if (obj->base.map_list.map)
drm_gem_free_mmap_offset(&obj->base);

obj->madv = __I915_MADV_PURGED;
}

Expand Down

0 comments on commit b593c68

Please sign in to comment.