]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Convert open-coded use of vma_pages()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Oct 2016 09:06:56 +0000 (10:06 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Oct 2016 09:54:20 +0000 (10:54 +0100)
commit50482b16d99d1838a13fe9cef776d55bfa83b7e5
tree78206ab969b31c2cec10e014147928581ecf5012
parent5439b73e2bb7c47d362b14083fcfd0255b50ed3c
drm/i915: Convert open-coded use of vma_pages()

If we want to know how many pages a VMA spans, we can use vma_pages() to
find out. We have one such invocation inside our faulthandler, so
convert it. (We have two other that want the size in bytes rather than
pages, food for future thought.)

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