/* Don't actually need to do any preparation, but need to make sure the address is in the right region.  */
int prepare_hugepage_range(struct file *file, unsigned long addr, unsigned long len)
/* Don't actually need to do any preparation, but need to make sure the address is in the right region.  */
int prepare_hugepage_range(struct file *file, unsigned long addr, unsigned long len)
{
	if (len & ~HPAGE_MASK)
		return -EINVAL;
	if (addr & ~HPAGE_MASK)
		return -EINVAL;
	if (REGION_NUMBER(addr) != RGN_HPAGE)
		return -EINVAL;
	return 0;
}