diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/hugetlb.h | 5 |
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 | ||
24 | extern spinlock_t hugetlb_lock; | ||
25 | extern int hugetlb_max_hstate __read_mostly; | ||
26 | #define for_each_hstate(h) \ | ||
27 | for ((h) = hstates; (h) < &hstates[hugetlb_max_hstate]; (h)++) | ||
28 | |||
24 | struct hugepage_subpool *hugepage_new_subpool(long nr_blocks); | 29 | struct hugepage_subpool *hugepage_new_subpool(long nr_blocks); |
25 | void hugepage_put_subpool(struct hugepage_subpool *spool); | 30 | void hugepage_put_subpool(struct hugepage_subpool *spool); |
26 | 31 | ||