Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation/vm: use better value for MAP_HUGETLB

documentation: slightly more correct value for MAP_HUGETLB in map_hugetlb.c

still not correct for alpha, mips, parisc or xtensa but working out of
the box in the most common architectures without having to deal with
complicated macros or including architecture specific headers.

Signed-off-by: Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Carlo Marcelo Arenas Belon and committed by
Linus Torvalds
89bbfb6b 4164fcc2

+1 -1
+1 -1
Documentation/vm/map_hugetlb.c
··· 19 19 #define PROTECTION (PROT_READ | PROT_WRITE) 20 20 21 21 #ifndef MAP_HUGETLB 22 - #define MAP_HUGETLB 0x40 22 + #define MAP_HUGETLB 0x40000 /* arch specific */ 23 23 #endif 24 24 25 25 /* Only ia64 requires this */