Re: [RFC 2/3] hugetlbfs: coordinate global and subpool reserve accounting

2015-03-02 Thread Mike Kravetz
On 03/02/2015 03:10 PM, Andrew Morton wrote: On Fri, 27 Feb 2015 14:58:11 -0800 Mike Kravetz wrote: If the pages for a subpool are reserved, then the reservations have already been accounted for in the global pool. Therefore, when requesting a new reservation (such as for a mapping) for the

Re: [RFC 2/3] hugetlbfs: coordinate global and subpool reserve accounting

2015-03-02 Thread Andrew Morton
On Fri, 27 Feb 2015 14:58:11 -0800 Mike Kravetz wrote: > If the pages for a subpool are reserved, then the reservations have > already been accounted for in the global pool. Therefore, when > requesting a new reservation (such as for a mapping) for the subpool > do not count again in global

Re: [RFC 2/3] hugetlbfs: coordinate global and subpool reserve accounting

2015-03-02 Thread Andrew Morton
On Fri, 27 Feb 2015 14:58:11 -0800 Mike Kravetz mike.krav...@oracle.com wrote: If the pages for a subpool are reserved, then the reservations have already been accounted for in the global pool. Therefore, when requesting a new reservation (such as for a mapping) for the subpool do not count

Re: [RFC 2/3] hugetlbfs: coordinate global and subpool reserve accounting

2015-03-02 Thread Mike Kravetz
On 03/02/2015 03:10 PM, Andrew Morton wrote: On Fri, 27 Feb 2015 14:58:11 -0800 Mike Kravetz mike.krav...@oracle.com wrote: If the pages for a subpool are reserved, then the reservations have already been accounted for in the global pool. Therefore, when requesting a new reservation (such as

Re: [RFC 2/3] hugetlbfs: coordinate global and subpool reserve accounting

2015-02-28 Thread Mike Kravetz
On 02/27/2015 07:25 PM, Hillf Danton wrote: @@ -3444,10 +3445,14 @@ int hugetlb_reserve_pages(struct inode *inode, * Check enough hugepages are available for the reservation. * Hand the pages back to the subpool if there are not */ Better if comment is updated

Re: [RFC 2/3] hugetlbfs: coordinate global and subpool reserve accounting

2015-02-28 Thread Mike Kravetz
On 02/27/2015 07:25 PM, Hillf Danton wrote: @@ -3444,10 +3445,14 @@ int hugetlb_reserve_pages(struct inode *inode, * Check enough hugepages are available for the reservation. * Hand the pages back to the subpool if there are not */ Better if comment is updated

Re: [RFC 2/3] hugetlbfs: coordinate global and subpool reserve accounting

2015-02-27 Thread Hillf Danton
> @@ -3444,10 +3445,14 @@ int hugetlb_reserve_pages(struct inode *inode, >* Check enough hugepages are available for the reservation. >* Hand the pages back to the subpool if there are not >*/ Better if comment is updated correspondingly. Hillf > - ret =

[RFC 2/3] hugetlbfs: coordinate global and subpool reserve accounting

2015-02-27 Thread Mike Kravetz
If the pages for a subpool are reserved, then the reservations have already been accounted for in the global pool. Therefore, when requesting a new reservation (such as for a mapping) for the subpool do not count again in global pool. However, when actually allocating a page for the subpool

[RFC 2/3] hugetlbfs: coordinate global and subpool reserve accounting

2015-02-27 Thread Mike Kravetz
If the pages for a subpool are reserved, then the reservations have already been accounted for in the global pool. Therefore, when requesting a new reservation (such as for a mapping) for the subpool do not count again in global pool. However, when actually allocating a page for the subpool

Re: [RFC 2/3] hugetlbfs: coordinate global and subpool reserve accounting

2015-02-27 Thread Hillf Danton
@@ -3444,10 +3445,14 @@ int hugetlb_reserve_pages(struct inode *inode, * Check enough hugepages are available for the reservation. * Hand the pages back to the subpool if there are not */ Better if comment is updated correspondingly. Hillf - ret =

[RFC 2/3] hugetlbfs: coordinate global and subpool reserve accounting

2015-02-27 Thread Mike Kravetz
If the pages for a subpool are reserved, then the reservations have already been accounted for in the global pool. Therefore, when requesting a new reservation (such as for a mapping) for the subpool do not count again in global pool. However, when actually allocating a page for the subpool

[RFC 2/3] hugetlbfs: coordinate global and subpool reserve accounting

2015-02-27 Thread Mike Kravetz
If the pages for a subpool are reserved, then the reservations have already been accounted for in the global pool. Therefore, when requesting a new reservation (such as for a mapping) for the subpool do not count again in global pool. However, when actually allocating a page for the subpool