]> git.hungrycats.org Git - linux/commitdiff
[PATCH] export hugetlb_total_pages
authorAndrew Morton <akpm@osdl.org>
Fri, 2 Apr 2004 09:59:24 +0000 (01:59 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 2 Apr 2004 09:59:24 +0000 (01:59 -0800)
The commoncap module calls this.

arch/i386/mm/hugetlbpage.c
arch/ia64/mm/hugetlbpage.c
arch/ppc64/mm/hugetlbpage.c
arch/sh/mm/hugetlbpage.c
arch/sparc64/mm/hugetlbpage.c

index 32e7db2315fe93f0660ccce33bc1a9857b3a8b9f..4e811de5769604ac8fb1bf1e00659226a928dac5 100644 (file)
@@ -532,6 +532,7 @@ unsigned long hugetlb_total_pages(void)
 {
        return htlbzone_pages * (HPAGE_SIZE / PAGE_SIZE);
 }
+EXPORT_SYMBOL(hugetlb_total_pages);
 
 /*
  * We cannot handle pagefaults against hugetlb pages at all.  They cause
index a6c1ac69b6cdc9fed963d2c2c57f9e625f418900..4598a4d2bfab3aea03cd86cba7e6afdec00fa3ae 100644 (file)
@@ -597,6 +597,7 @@ unsigned long hugetlb_total_pages(void)
 {
        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)
 {
index 8fd675fc2d8425603648f5558c39a15301054d54..b763fb9d06e395a821634d972ea4eda679bc4bc4 100644 (file)
@@ -933,6 +933,7 @@ unsigned long hugetlb_total_pages(void)
 {
        return htlbpage_total * (HPAGE_SIZE / PAGE_SIZE);
 }
+EXPORT_SYMBOL(hugetlb_total_pages);
 
 /*
  * We cannot handle pagefaults against hugetlb pages at all.  They cause
index 9065249a5765b530d5d7e17d07d3a6e1c90049c6..8f6f8034dae7c585361ed65aaa0f19a7aa870ec8 100644 (file)
@@ -506,6 +506,7 @@ unsigned long hugetlb_total_pages(void)
 {
        return htlbzone_pages * (HPAGE_SIZE / PAGE_SIZE);
 }
+EXPORT_SYMBOL(hugetlb_total_pages);
 
 /*
  * We cannot handle pagefaults against hugetlb pages at all.  They cause
index 6bb1cfd9009f64a49e2feaec2bb619ea36207275..232da85dc0f98a80eb0d8a89c62a2667231fb039 100644 (file)
@@ -502,6 +502,7 @@ unsigned long hugetlb_total_pages(void)
 {
        return htlbzone_pages * (HPAGE_SIZE / PAGE_SIZE);
 }
+EXPORT_SYMBOL(hugetlb_total_pages);
 
 /*
  * We cannot handle pagefaults against hugetlb pages at all.  They cause