/* We don't check here for the merged mmap wrapping around the end of pagecache indices (16TB on ia32) because do_mmap_pgoff() does not permit mmap's which wrap, nor mmaps which cover the final page at index -1UL.  */
static int can_vma_merge_before(struct vm_area_struct *vma, unsigned long vm_flags, struct anon_vma *anon_vma, struct file *file, pgoff_t vm_pgoff)
/* We don't check here for the merged mmap wrapping around the end of pagecache indices (16TB on ia32) because do_mmap_pgoff() does not permit mmap's which wrap, nor mmaps which cover the final page at index -1UL.  */
static int can_vma_merge_before(struct vm_area_struct *vma, unsigned long vm_flags, struct anon_vma *anon_vma, struct file *file, pgoff_t vm_pgoff)
{
	if (is_mergeable_vma(vma, file, vm_flags) &&
	    is_mergeable_anon_vma(anon_vma, vma->anon_vma)) {
		if (vma->vm_pgoff == vm_pgoff)
			return 1;
	}
	return 0;
}