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)
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>

No differences found