Skip to content
Commit 493af578 authored by Jörn Engel's avatar Jörn Engel Committed by Linus Torvalds
Browse files

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: default avatarJoern Engel <joern@logfs.org>
Cc: Jianguo Wu <wujianguo@huawei.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 918fc718
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment