dma-buf: use vma_pages()
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Mon, 23 May 2016 11:38:42 +0000 (17:08 +0530)
committerSumit Semwal <sumit.semwal@linaro.org>
Tue, 31 May 2016 16:47:05 +0000 (22:17 +0530)
commitb02da6f8236148009c22167cd7013d5ce04a2d37
treee0408c4075dd0004740b1f011fae28d7a6533367
parent4320c2a22df12f954edd4997f71ca3a4216312b2
dma-buf: use vma_pages()

Replace explicit computation of vma page count by a call to
vma_pages().
Also, include <linux/mm.h>

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
drivers/dma-buf/dma-buf.c