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>
Showing
- arch/alpha/include/asm/mman.h 2 additions, 0 deletionsarch/alpha/include/asm/mman.h
- arch/arm/include/asm/mman.h 2 additions, 0 deletionsarch/arm/include/asm/mman.h
- arch/avr32/include/asm/mman.h 2 additions, 0 deletionsarch/avr32/include/asm/mman.h
- arch/cris/include/asm/mman.h 2 additions, 0 deletionsarch/cris/include/asm/mman.h
- arch/frv/include/asm/mman.h 2 additions, 0 deletionsarch/frv/include/asm/mman.h
- arch/h8300/include/asm/mman.h 2 additions, 0 deletionsarch/h8300/include/asm/mman.h
- arch/ia64/include/asm/mman.h 2 additions, 0 deletionsarch/ia64/include/asm/mman.h
- arch/m32r/include/asm/mman.h 2 additions, 0 deletionsarch/m32r/include/asm/mman.h
- arch/m68k/include/asm/mman.h 2 additions, 0 deletionsarch/m68k/include/asm/mman.h
- arch/mips/include/asm/mman.h 2 additions, 0 deletionsarch/mips/include/asm/mman.h
- arch/mn10300/include/asm/mman.h 2 additions, 0 deletionsarch/mn10300/include/asm/mman.h
- arch/parisc/include/asm/mman.h 2 additions, 0 deletionsarch/parisc/include/asm/mman.h
- arch/powerpc/include/asm/mman.h 2 additions, 0 deletionsarch/powerpc/include/asm/mman.h
- arch/s390/include/asm/mman.h 2 additions, 0 deletionsarch/s390/include/asm/mman.h
- arch/sparc/include/asm/mman.h 2 additions, 0 deletionsarch/sparc/include/asm/mman.h
- arch/xtensa/include/asm/mman.h 2 additions, 0 deletionsarch/xtensa/include/asm/mman.h
- include/asm-generic/mman.h 1 addition, 0 deletionsinclude/asm-generic/mman.h
Loading
Please register or sign in to comment