git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
918fc71
)
mmap: allow MAP_HUGETLB for hugetlbfs files v2
author
Jörn Engel
<joern@logfs.org>
Mon, 8 Jul 2013 23:00:26 +0000
(16:00 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 9 Jul 2013 17:33:24 +0000
(10:33 -0700)
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 <joern@logfs.org>
Cc: Jianguo Wu <wujianguo@huawei.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c
patch
|
blob
|
history
diff --cc
mm/mmap.c
Simple merge