On 20-Apr-18 3:41 PM, Anatoly Burakov wrote:
For non-legacy mode, we are preallocating space for hugepages, so
we know in advance which pages we will be able to allocate, and
which we won't. However, the init procedure was using hugepage
counts gathered from sysfs and paid no attention to hugepage
sizes that were actually available for reservation, and failed
on attempts to reserve unavailable pages.

Fix this by limiting total page counts by number of pages
actually preallocated.

Signed-off-by: Anatoly Burakov <anatoly.bura...@intel.com>
---

Oops, didn't update the patch after fixing build.

--
Thanks,
Anatoly

Reply via email to