Re: [RFC PATCH 3/3] mm: shm: Use new hugetlb size encoding definitions

2017-07-27 Thread Michal Hocko
On Thu 27-07-17 14:18:11, Mike Kravetz wrote: > On 07/27/2017 12:50 AM, Michal Hocko wrote: > > On Wed 26-07-17 10:39:30, Mike Kravetz wrote: > >> On 07/26/2017 03:07 AM, Michal Hocko wrote: > >>> On Wed 26-07-17 11:53:38, Michal Hocko wrote: > On Mon 17-07-17 15:28:01, Mike Kravetz wrote: > >

Re: [RFC PATCH 3/3] mm: shm: Use new hugetlb size encoding definitions

2017-07-27 Thread Mike Kravetz
On 07/27/2017 12:50 AM, Michal Hocko wrote: > On Wed 26-07-17 10:39:30, Mike Kravetz wrote: >> On 07/26/2017 03:07 AM, Michal Hocko wrote: >>> On Wed 26-07-17 11:53:38, Michal Hocko wrote: On Mon 17-07-17 15:28:01, Mike Kravetz wrote: > Use the common definitions from hugetlb_encode.h head

Re: [RFC PATCH 3/3] mm: shm: Use new hugetlb size encoding definitions

2017-07-27 Thread Michal Hocko
On Wed 26-07-17 10:39:30, Mike Kravetz wrote: > On 07/26/2017 03:07 AM, Michal Hocko wrote: > > On Wed 26-07-17 11:53:38, Michal Hocko wrote: > >> On Mon 17-07-17 15:28:01, Mike Kravetz wrote: > >>> Use the common definitions from hugetlb_encode.h header file for > >>> encoding hugetlb size definit

Re: [RFC PATCH 3/3] mm: shm: Use new hugetlb size encoding definitions

2017-07-26 Thread Matthew Wilcox
On Wed, Jul 26, 2017 at 10:39:30AM -0700, Mike Kravetz wrote: > In the overview of this RFC, I mentioned still needing to address the > comment from Aneesh about splitting SHM_HUGE_* definitions into arch > specific header files. This is how it is done for mmap. If an arch > supports multiple hug

Re: [RFC PATCH 3/3] mm: shm: Use new hugetlb size encoding definitions

2017-07-26 Thread Mike Kravetz
On 07/26/2017 03:07 AM, Michal Hocko wrote: > On Wed 26-07-17 11:53:38, Michal Hocko wrote: >> On Mon 17-07-17 15:28:01, Mike Kravetz wrote: >>> Use the common definitions from hugetlb_encode.h header file for >>> encoding hugetlb size definitions in shmget system call flags. In >>> addition, move

Re: [RFC PATCH 3/3] mm: shm: Use new hugetlb size encoding definitions

2017-07-26 Thread Michal Hocko
On Wed 26-07-17 11:53:38, Michal Hocko wrote: > On Mon 17-07-17 15:28:01, Mike Kravetz wrote: > > Use the common definitions from hugetlb_encode.h header file for > > encoding hugetlb size definitions in shmget system call flags. In > > addition, move these definitions to the from the internal to

Re: [RFC PATCH 3/3] mm: shm: Use new hugetlb size encoding definitions

2017-07-26 Thread Michal Hocko
On Mon 17-07-17 15:28:01, Mike Kravetz wrote: > Use the common definitions from hugetlb_encode.h header file for > encoding hugetlb size definitions in shmget system call flags. In > addition, move these definitions to the from the internal to user > (uapi) header file. s@to the from@from@ > >

[RFC PATCH 3/3] mm: shm: Use new hugetlb size encoding definitions

2017-07-17 Thread Mike Kravetz
Use the common definitions from hugetlb_encode.h header file for encoding hugetlb size definitions in shmget system call flags. In addition, move these definitions to the from the internal to user (uapi) header file. Suggested-by: Matthew Wilcox Signed-off-by: Mike Kravetz --- include/linux/sh