Re: [RFC 3/3] hugetlbfs: accept subpool reserved option and setup accordingly

From: Mike Kravetz
Date: Mon Mar 02 2015 - 20:37:36 EST


On 03/02/2015 03:10 PM, Andrew Morton wrote:
On Fri, 27 Feb 2015 14:58:13 -0800 Mike Kravetz <mike.kravetz@xxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/