summaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
authorMike Kravetz2017-09-07 01:23:29 +0200
committerLinus Torvalds2017-09-07 02:27:28 +0200
commitaafd4562dfee81a40ba21b5ea3cf5e06664bc7f6 (patch)
treece261c7753417778fce3558fc6f6f92bb3f715b0 /mm/mmap.c
parentmm: hugetlb: define system call hugetlb size encodings in single file (diff)
downloadkernel-qcow2-linux-aafd4562dfee81a40ba21b5ea3cf5e06664bc7f6.tar.gz
kernel-qcow2-linux-aafd4562dfee81a40ba21b5ea3cf5e06664bc7f6.tar.xz
kernel-qcow2-linux-aafd4562dfee81a40ba21b5ea3cf5e06664bc7f6.zip
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>
Diffstat (limited to 'mm/mmap.c')
0 files changed, 0 insertions, 0 deletions