Commit e6b03c0b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] export hugetlb_total_pages

The commoncap module calls this.
parent e4dfa2d1
...@@ -532,6 +532,7 @@ unsigned long hugetlb_total_pages(void) ...@@ -532,6 +532,7 @@ unsigned long hugetlb_total_pages(void)
{ {
return htlbzone_pages * (HPAGE_SIZE / PAGE_SIZE); return htlbzone_pages * (HPAGE_SIZE / PAGE_SIZE);
} }
EXPORT_SYMBOL(hugetlb_total_pages);
/* /*
* We cannot handle pagefaults against hugetlb pages at all. They cause * We cannot handle pagefaults against hugetlb pages at all. They cause
......
...@@ -597,6 +597,7 @@ unsigned long hugetlb_total_pages(void) ...@@ -597,6 +597,7 @@ unsigned long hugetlb_total_pages(void)
{ {
return htlbzone_pages * (HPAGE_SIZE / PAGE_SIZE); return htlbzone_pages * (HPAGE_SIZE / PAGE_SIZE);
} }
EXPORT_SYMBOL(hugetlb_total_pages);
static struct page *hugetlb_nopage(struct vm_area_struct * area, unsigned long address, int *unused) static struct page *hugetlb_nopage(struct vm_area_struct * area, unsigned long address, int *unused)
{ {
......
...@@ -933,6 +933,7 @@ unsigned long hugetlb_total_pages(void) ...@@ -933,6 +933,7 @@ unsigned long hugetlb_total_pages(void)
{ {
return htlbpage_total * (HPAGE_SIZE / PAGE_SIZE); return htlbpage_total * (HPAGE_SIZE / PAGE_SIZE);
} }
EXPORT_SYMBOL(hugetlb_total_pages);
/* /*
* We cannot handle pagefaults against hugetlb pages at all. They cause * We cannot handle pagefaults against hugetlb pages at all. They cause
......
...@@ -506,6 +506,7 @@ unsigned long hugetlb_total_pages(void) ...@@ -506,6 +506,7 @@ unsigned long hugetlb_total_pages(void)
{ {
return htlbzone_pages * (HPAGE_SIZE / PAGE_SIZE); return htlbzone_pages * (HPAGE_SIZE / PAGE_SIZE);
} }
EXPORT_SYMBOL(hugetlb_total_pages);
/* /*
* We cannot handle pagefaults against hugetlb pages at all. They cause * We cannot handle pagefaults against hugetlb pages at all. They cause
......
...@@ -502,6 +502,7 @@ unsigned long hugetlb_total_pages(void) ...@@ -502,6 +502,7 @@ unsigned long hugetlb_total_pages(void)
{ {
return htlbzone_pages * (HPAGE_SIZE / PAGE_SIZE); return htlbzone_pages * (HPAGE_SIZE / PAGE_SIZE);
} }
EXPORT_SYMBOL(hugetlb_total_pages);
/* /*
* We cannot handle pagefaults against hugetlb pages at all. They cause * We cannot handle pagefaults against hugetlb pages at all. They cause
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment