aboutsummaryrefslogtreecommitdiffstats
path: root/block/elevator.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-08-07 11:01:30 +0100
committerEric Anholt <eric@anholt.net>2010-08-09 11:24:34 -0700
commitae9fed6b601821d70928797c56da0e2008ef840d (patch)
tree36342293eab3bb747e52a5d1ac4157b963400afb /block/elevator.c
parent20a0945951705246278f43641bb13611c030e112 (diff)
downloadkernel_samsung_crespo-ae9fed6b601821d70928797c56da0e2008ef840d.zip
kernel_samsung_crespo-ae9fed6b601821d70928797c56da0e2008ef840d.tar.gz
kernel_samsung_crespo-ae9fed6b601821d70928797c56da0e2008ef840d.tar.bz2
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 <chris@chris-wilson.co.uk> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'block/elevator.c')
0 files changed, 0 insertions, 0 deletions