drm/i915: Eliminate nested get/put pages
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Oct 2010 12:45:36 +0000 (13:45 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Oct 2010 19:55:02 +0000 (20:55 +0100)
commite5281ccd2e0049e2b9e8ce82449630d25082372d
tree56ff79f83ce4d0e957d68643a37af4cbc08eba11
parent39a01d1fb63cf8ebc1a8cf436f5c0ba9657b55c6
drm/i915: Eliminate nested get/put pages

By using read_cache_page() for individual pages during pwrite/pread we
can eliminate an unnecessary large allocation (and immediate free) of
obj->pages. Also this eliminates any potential nesting of get/put pages,
simplifying the code and preparing the path for greater things.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c