Re: [PATCH] mmap: allow MAP_HUGETLB for hugetlbfs files v2

2013-06-19 Thread Jianguo Wu
Hi Joern, I cannot apply this patch to Linus tree, as the code has been modified since commit af73e4d9506d ("hugetlbfs: fix mmap failure in unaligned size request"). Thanks, Jianguo Wu On 2013/6/20 0:25, Jörn Engel wrote: > It is counterintuitive at best that mmap'ing a hugetlbfs file with > MA

[PATCH] mmap: allow MAP_HUGETLB for hugetlbfs files v2

2013-06-19 Thread Jörn Engel
It is counterintuitive at best that mmap'ing a hugetlbfs file with MAP_HUGETLB fails, while mmap'ing it without will a) succeed and b) return huge pages. v2: use is_file_hugepages(), as suggested by Jianguo Signed-off-by: Joern Engel Cc: Jianguo Wu --- mm/mmap.c |6 -- 1 file changed, 4