commit | ac26da5b53e352850236fb73c60bd2b9c162eb06 | [log] [tgz] |
---|---|---|
author | Stefan Kobza <skobza@cisco.com> | Fri Mar 11 15:18:42 2016 +0100 |
committer | Gerrit Code Review <gerrit@fd.io> | Mon Mar 14 03:50:11 2016 +0000 |
tree | 64c0e29a2ac64a9ec8263781afe19b287abea02a | |
parent | a5584254fca2d3cbb30a8a7912fa60e363b10a4d [diff] |
Do not use hugepages if none are available. In case socket-mem was set to <1024 and no 1G page long hupepages were available, the condition was evaluated in unexpected manner. In other words use_1g == 1, and that fails later in mount(). This patch makes sure this is prevented - if there are no pages_available, do not even try to use that pagesize. Change-Id: I30675aa017d97b99d84d5db926e62f0acb54deb6 Signed-off-by: Stefan Kobza <skobza@cisco.com>