Messages in this thread | | | Date | Mon, 02 Mar 2015 17:36:47 -0800 | From | Mike Kravetz <> | Subject | Re: [RFC 3/3] hugetlbfs: accept subpool reserved option and setup accordingly |
| |
On 03/02/2015 03:10 PM, Andrew Morton wrote: > On Fri, 27 Feb 2015 14:58:13 -0800 Mike Kravetz <mike.kravetz@oracle.com> wrote: > >> Make reserved be an option when mounting a hugetlbfs. > > New mount option triggers a user documentation update. hugetlbfs isn't > well documented, but Documentation/vm/hugetlbpage.txt looks like the > place. >
Will do
> >> reserved >> option is only possible if size option is also specified. > > The code doesn't appear to check for this (maybe it does). Probably it > should do so, and warn when it fails. >
It is hard to see from the diffs, but this case is covered. If size is not specified, it implies the size is "unlimited". The code in the patch actually makes the mount fail in this case.
-- Mike Kravetz
| |