From: Jörn Engel Date: Mon, 8 Jul 2013 23:00:26 +0000 (-0700) Subject: mmap: allow MAP_HUGETLB for hugetlbfs files v2 X-Git-Tag: v3.11-rc1~67^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=493af578040e690f93f0fc8d9e7667ffff8155bb;p=pandora-kernel.git mmap: allow MAP_HUGETLB for hugetlbfs files v2 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed