drm/i915: use shmem helpers if possible
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 25 May 2014 12:34:10 +0000 (14:34 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 11 Jun 2014 14:57:38 +0000 (16:57 +0200)
commitf461d1be22239053919543ec9b048095407bf4bd
tree9a75621dee66e507e820366b7fa3f62bbd327cb9
parent465c120c4c252e127b57cd133c4611b075e0a237
drm/i915: use shmem helpers if possible

Instead of shuffling gfp-masks all the time, use the
shmem_read_mapping_page() helper. Note that __GFP_IO and __GFP_WAIT are
set in mapping_gfp_mask() for i915, so the behavior is still the same.

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c