Arnd Bergmann 90f72aa58b mm: add MAP_HUGETLB for mmaping pseudo-anonymous huge page regions
Add a flag for mmap that will be used to request a huge page region that
will look like anonymous memory to user space.  This is accomplished by
using a file on the internal vfsmount.  MAP_HUGETLB is a modifier of
MAP_ANONYMOUS and so must be specified with it.  The region will behave
the same as a MAP_ANONYMOUS region using small pages.

The patch also adds the MAP_STACK flag, which was previously defined only
on some architectures but not on others.  Since MAP_STACK is meant to be a
hint only, architectures can define it without assigning a specific
meaning to it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Eric B Munson <ebmunson@us.ibm.com>
Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Cc: David Rientjes <rientjes@google.com>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-09-22 07:17:41 -07:00
..
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:31 +02:00
2009-06-11 21:02:51 +02:00
2008-02-06 10:41:00 -08:00
2008-05-01 08:03:58 -07:00
2009-06-11 21:02:42 +02:00
2005-04-16 15:20:36 -07:00
2009-06-03 14:06:14 -04:00
2009-04-02 19:04:51 -07:00
2005-04-16 15:20:36 -07:00
2008-08-12 16:07:31 -07:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:16 +02:00
2009-09-10 10:46:47 +03:00
2009-06-11 21:02:15 +02:00
2009-09-09 13:29:18 -07:00
2007-05-11 08:29:34 -07:00
2009-06-18 13:03:57 -07:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:15 +02:00
2009-03-26 18:14:21 +01:00
2009-06-11 21:02:15 +02:00
2008-09-05 14:39:38 -07:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:42 +02:00
2005-04-16 15:20:36 -07:00