From: Chris Wilson Date: Tue, 25 Mar 2014 13:23:06 +0000 (+0000) Subject: drm/i915: Invalidate our pages under memory pressure X-Git-Tag: omap-for-v3.16/fixes-against-rc1~44^2~38^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5537252b6b6d71fb1a8ed7395a8e5babf91953fd;p=pandora-kernel.git drm/i915: Invalidate our pages under memory pressure Try to flush out dirty pages into the swapcache (and from there into the swapfile) when under memory pressure and forced to drop GEM objects from memory. In effect, this should just allow us to discard unused pages for memory reclaim and to start writeback earlier. v2: Hugh Dickins warned that explicitly starting writeback from shrink_slab was prone to deadlocks within shmemfs. Cc: Hugh Dickins Signed-off-by: Chris Wilson Reviewed-by: Robert Beckett Reviewed-by: Rafael Barbalho Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed