[PATCH 1/4] hugetlbfs: add reserved mount fields to subpool structure

2015-03-03 Thread Mike Kravetz
Add a boolean to the subpool structure to indicate that the pages for subpool have been reserved. The hstate pointer in the subpool is convenient to have when reserving and unreserving the pages. hugepage_subool_reserved() is a handy way to check if reserved and take into account a NULL subpool.

[PATCH 1/4] hugetlbfs: add reserved mount fields to subpool structure

2015-03-03 Thread Mike Kravetz
Add a boolean to the subpool structure to indicate that the pages for subpool have been reserved. The hstate pointer in the subpool is convenient to have when reserving and unreserving the pages. hugepage_subool_reserved() is a handy way to check if reserved and take into account a NULL subpool.