aboutsummaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
authorEric B Munson <ebmunson@us.ibm.com>2009-05-13 10:07:50 +0100
committerEric B Munson <ebmunson@us.ibm.com>2009-05-13 15:34:22 +0100
commit1e4d1b933de293d52adae2766a5d3313890a5fca (patch)
tree3db69d740c9b470b42f8356ee2f2329a043adcc4 /init.c
parent612f6a347c4bac788f0fa175ec88861769e356db (diff)
downloadlibhugetlbfs-1e4d1b933de293d52adae2766a5d3313890a5fca.tar.gz
Move check for private reservations out of morecore setup
Prefaulting should be disabled when the kernel supports private reservations. Currently this check is part of the morecore_setup function and is only made if HUGETLB_MORECORE is 'yes'. This is a problem for users of get_hugepage_region because prefaulting will slow allocation down significantly and screw with NUMA placement policies where we want to do demand faulting. This patch moves the check for private reservations into s separate function that is called during hugetlb_setup. Signed-off-by: Eric B Munson <ebmunson@us.ibm.com> Acked-by: Mel Gorman <mel@csn.ul.ie>
Diffstat (limited to 'init.c')
-rw-r--r--init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.c b/init.c
index 794e03c..e95cb5c 100644
--- a/init.c
+++ b/init.c
@@ -25,6 +25,7 @@ static void __attribute__ ((constructor)) setup_libhugetlbfs(void)
hugetlbfs_setup_debug();
setup_mounts();
setup_features();
+ hugetlbfs_check_priv_resv();
#ifndef NO_ELFLINK
hugetlbfs_setup_elflink();
#endif