Documentation/vm: use better value for MAP_HUGETLB
authorCarlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
Mon, 24 May 2010 00:02:30 +0000 (17:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 24 May 2010 14:30:56 +0000 (07:30 -0700)
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>
Documentation/vm/map_hugetlb.c

index 9969c7d9f9855486096a5c9e01b88c14034e6efd..eda1a6d3578ab64a99931b716ab164841d8de310 100644 (file)
@@ -19,7 +19,7 @@
 #define PROTECTION (PROT_READ | PROT_WRITE)
 
 #ifndef MAP_HUGETLB
-#define MAP_HUGETLB 0x40
+#define MAP_HUGETLB 0x40000 /* arch specific */
 #endif
 
 /* Only ia64 requires this */