intel: Only store a buffer in the cache if it is retained.
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Nov 2009 20:02:05 +0000 (20:02 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Nov 2009 20:02:05 +0000 (20:02 +0000)
commit60aa803dc76bbdfac72da4de4cdc3018717b0884
tree2f2703df285f9180218a01673e96ee82b257fe6b
parent6f66de982ad6ee6967ec61a7399e600bdd9e5887
intel: Only store a buffer in the cache if it is retained.

If the kernel immediately frees the backing store for a buffer when
marking it purgeable, then there is not point adding to the cache. Free
it immediately, instead.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c