aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/hugetlb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
index ed550d819044..3d677dd41898 100644
--- a/include/linux/hugetlb.h
+++ b/include/linux/hugetlb.h
@@ -21,6 +21,11 @@ struct hugepage_subpool {
21 long max_hpages, used_hpages; 21 long max_hpages, used_hpages;
22}; 22};
23 23
24extern spinlock_t hugetlb_lock;
25extern int hugetlb_max_hstate __read_mostly;
26#define for_each_hstate(h) \
27 for ((h) = hstates; (h) < &hstates[hugetlb_max_hstate]; (h)++)
28
24struct hugepage_subpool *hugepage_new_subpool(long nr_blocks); 29struct hugepage_subpool *hugepage_new_subpool(long nr_blocks);
25void hugepage_put_subpool(struct hugepage_subpool *spool); 30void hugepage_put_subpool(struct hugepage_subpool *spool);
26 31