All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Truncate the inode as well as the backing pages on purge
@ 2010-08-04 15:22 Chris Wilson
  2010-08-06 22:25 ` Eric Anholt
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Wilson @ 2010-08-04 15:22 UTC (permalink / raw)
  To: intel-gfx

Signed-off-by: Chris Wilson <chris@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/i915: Truncate the inode as well as the backing pages on purge
  2010-08-04 15:22 [PATCH] drm/i915: Truncate the inode as well as the backing pages on purge Chris Wilson
@ 2010-08-06 22:25 ` Eric Anholt
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Anholt @ 2010-08-06 22:25 UTC (permalink / raw)
  To: Chris Wilson, intel-gfx


[-- Attachment #1.1: Type: text/plain, Size: 185 bytes --]

On Wed,  4 Aug 2010 16:22:28 +0100, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

Any clarification what the impact was here?

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-06 22:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-04 15:22 [PATCH] drm/i915: Truncate the inode as well as the backing pages on purge Chris Wilson
2010-08-06 22:25 ` Eric Anholt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.