The current kernel returns -EINVAL unless a given mmap length is
"almost" hugepage aligned.  This is because in sys_mmap_pgoff() the
given length is passed to vm_mmap_pgoff() as it is without being aligned
with hugepage boundary.
This is a regression introduced in commit 
		
	
					 | 
			||
|---|---|---|
| .. | ||
| inode.c | ||
| Makefile | ||