From: Chris Wilson Date: Sat, 7 Aug 2010 10:01:30 +0000 (+0100) Subject: drm/i915: Truncate the shmem backing pages on purge X-Git-Tag: v2.6.36-rc2~2^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae9fed6b601821d70928797c56da0e2008ef840d;p=pandora-kernel.git drm/i915: Truncate the shmem backing pages on purge shmfs doesn't actually implement i_ops->truncate() so we were not immedatiately releasing the backing pages when shrinking the gfx cache under OOM. Instead use a combination of truncate_inode_pages() and i_ops->truncate_range() as is used by shmem_delete_inode(). Signed-off-by: Chris Wilson Signed-off-by: Eric Anholt --- Reading git-diff-tree failed