Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci"
Run against version v4.14-rc1 Let me know when you as a maintainer are not interested in these kind of patches. I can exclude you by path; e.g. all findings in "drivers/scsi" will never be reported again by this semi-automatic program runs.

