• Arnd Bergmann's avatar
    mm: add MAP_HUGETLB for mmaping pseudo-anonymous huge page regions · 90f72aa5
    Arnd Bergmann authored
    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: default avatarArnd 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: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    90f72aa5
mman.h 1.25 KB