Re: [PATCH 2/3] mm: arch: Consolidate mmap hugetlb size encodings

2017-08-01 Thread Michal Hocko
On Mon 31-07-17 11:56:25, Mike Kravetz wrote: > 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

Re: [PATCH 2/3] mm: arch: Consolidate mmap hugetlb size encodings

2017-08-01 Thread Michal Hocko
On Mon 31-07-17 11:56:25, Mike Kravetz wrote: > 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

[PATCH 2/3] mm: arch: Consolidate mmap hugetlb size encodings

2017-07-31 Thread Mike Kravetz
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).

[PATCH 2/3] mm: arch: Consolidate mmap hugetlb size encodings

2017-07-31 Thread Mike Kravetz
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).