[PATCH 3/4] hugetlbfs: accept subpool reserved option and setup accordingly

2015-03-03 Thread Mike Kravetz
Make reserved be an option when mounting a hugetlbfs. reserved option is only possible if size option is also specified, otherwise the mount will fail. On mount, reserve size hugepages from the global pool and note in subpool. Unreserve hugepages when fs is unmounted. Signed-off-by: Mike

[PATCH 3/4] hugetlbfs: accept subpool reserved option and setup accordingly

2015-03-03 Thread Mike Kravetz
Make reserved be an option when mounting a hugetlbfs. reserved option is only possible if size option is also specified, otherwise the mount will fail. On mount, reserve size hugepages from the global pool and note in subpool. Unreserve hugepages when fs is unmounted. Signed-off-by: Mike