linux/arch
Mike Kravetz aafd4562df mm: arch: consolidate mmap hugetlb size encodings
A non-default huge page size can be encoded in the flags argument of the
mmap system call.  The definitions for these encodings are in arch
specific header files.  However, all architectures use the same values.

Consolidate all the definitions in the primary user header file
(uapi/linux/mman.h).  Include definitions for all known huge page sizes.
Use the generic encoding definitions in hugetlb_encode.h as the basis
for these definitions.

Link: http://lkml.kernel.org/r/1501527386-10736-3-git-send-email-mike.kravetz@oracle.com
Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Cc: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Davidlohr Bueso <dbueso@suse.de>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-09-06 17:27:28 -07:00
..
alpha mm: arch: consolidate mmap hugetlb size encodings 2017-09-06 17:27:28 -07:00
arc Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-09-04 11:52:29 -07:00
arm Power management updates for v4.14-rc1 2017-09-05 12:19:08 -07:00
arm64 ACPI updates for v4.14-rc1 2017-09-05 12:45:03 -07:00
blackfin
c6x c6x: Convert to using %pOF instead of full_name 2017-08-24 09:35:40 -04:00
cris
frv futex: Remove duplicated code and fix undefined behaviour 2017-08-25 22:49:59 +02:00
h8300
hexagon Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-09-04 11:52:29 -07:00
ia64 ACPI updates for v4.14-rc1 2017-09-05 12:45:03 -07:00
m32r Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-09-04 08:13:52 -07:00
m68k m68k updates for 4.14 2017-09-05 09:34:49 -07:00
metag metag/numa: remove the unused parent_node() macro 2017-09-06 17:27:24 -07:00
microblaze Merge branch 'linus' into locking/core, to fix up conflicts 2017-09-04 11:01:18 +02:00
mips mm: arch: consolidate mmap hugetlb size encodings 2017-09-06 17:27:28 -07:00
mn10300
nios2
openrisc futex: Remove duplicated code and fix undefined behaviour 2017-08-25 22:49:59 +02:00
parisc mm: arch: consolidate mmap hugetlb size encodings 2017-09-06 17:27:28 -07:00
powerpc mm: arch: consolidate mmap hugetlb size encodings 2017-09-06 17:27:28 -07:00
s390 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2017-09-05 09:45:46 -07:00
score
sh Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-09-04 11:52:29 -07:00
sparc Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-09-04 11:52:29 -07:00
tile Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-09-04 11:52:29 -07:00
um Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-09-04 09:52:57 -07:00
unicore32
x86 mm: arch: consolidate mmap hugetlb size encodings 2017-09-06 17:27:28 -07:00
xtensa mm: arch: consolidate mmap hugetlb size encodings 2017-09-06 17:27:28 -07:00
.gitignore
Kconfig