Re: [Intel-gfx] [PATCH] drm/i915: Truncate the inode as well as the backing pages on purge

2010-08-06 Thread Eric Anholt
On Wed,  4 Aug 2010 16:22:28 +0100, Chris Wilson ch...@chris-wilson.co.uk 
wrote:
 Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk

Any clarification what the impact was here?


pgpJukfKw83yH.pgp
Description: PGP signature
___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx


[Intel-gfx] [PATCH] drm/i915: Truncate the inode as well as the backing pages on purge

2010-08-04 Thread Chris Wilson
Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk
---
 drivers/gpu/drm/i915/i915_gem.c |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 4cf2789..f599d77 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1497,6 +1497,7 @@ i915_gem_object_truncate(struct drm_gem_object *obj)
struct inode *inode;
 
inode = obj-filp-f_path.dentry-d_inode;
+   truncate_inode_pages(inode-i_mapping, 0);
if (inode-i_op-truncate)
inode-i_op-truncate (inode);
 
-- 
1.7.1

___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx