/* Return the size of the pages allocated when backing a VMA. In the majority cases this will be same size as used by the page table entries.  */
unsigned long vma_kernel_pagesize(struct vm_area_struct *vma)
/* Return the size of the pages allocated when backing a VMA. In the majority cases this will be same size as used by the page table entries.  */
unsigned long vma_kernel_pagesize(struct vm_area_struct *vma)
{
	struct hstate *hstate;
	if (!is_vm_hugetlb_page(vma))
		return PAGE_SIZE;
	hstate = hstate_vma(vma);
	return 1UL << (hstate->order + PAGE_SHIFT);
}