drm/i915: Initialise i915_gem_object_create_from_data() directly
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Mar 2017 19:46:48 +0000 (19:46 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Mar 2017 22:55:56 +0000 (22:55 +0000)
commitbe062fa42738822b8b91351752ff89275e25b516
tree00337fe19c9571cf13cb7f0c62fdeac4d35858c3
parentf3ddd2c14fdc08798a7fa2d32b39786585162f50
drm/i915: Initialise i915_gem_object_create_from_data() directly

Use pagecache_write to avoid shmemfs clearing the pages prior to us
immediately overwriting them with our data.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170317194648.12468-2-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/i915_gem.c