aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hugetlb.h
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2008-07-24 00:27:50 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-24 13:47:18 -0400
commitceb868796181dc95ea01a110e123afd391639873 (patch)
tree991be618e5195b05c31974a19adb4b9602315013 /include/linux/hugetlb.h
parent4abd32dbab201c3ced0b0af12accea77cd9eeffc (diff)
hugetlb: introduce pud_huge
Straight forward extensions for huge pages located in the PUD instead of PMDs. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Nick Piggin <npiggin@suse.de> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/hugetlb.h')
-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 58c0de32e7f0..b2c17f62cacb 100644
--- a/include/linux/hugetlb.h
+++ b/include/linux/hugetlb.h
@@ -50,7 +50,10 @@ struct page *follow_huge_addr(struct mm_struct *mm, unsigned long address,
50 int write); 50 int write);
51struct page *follow_huge_pmd(struct mm_struct *mm, unsigned long address, 51struct page *follow_huge_pmd(struct mm_struct *mm, unsigned long address,
52 pmd_t *pmd, int write); 52 pmd_t *pmd, int write);
53struct page *follow_huge_pud(struct mm_struct *mm, unsigned long address,
54 pud_t *pud, int write);
53int pmd_huge(pmd_t pmd); 55int pmd_huge(pmd_t pmd);
56int pud_huge(pud_t pmd);
54void hugetlb_change_protection(struct vm_area_struct *vma, 57void hugetlb_change_protection(struct vm_area_struct *vma,
55 unsigned long address, unsigned long end, pgprot_t newprot); 58 unsigned long address, unsigned long end, pgprot_t newprot);
56 59
@@ -78,8 +81,10 @@ static inline unsigned long hugetlb_total_pages(void)
78#define hugetlb_report_meminfo(buf) 0 81#define hugetlb_report_meminfo(buf) 0
79#define hugetlb_report_node_meminfo(n, buf) 0 82#define hugetlb_report_node_meminfo(n, buf) 0
80#define follow_huge_pmd(mm, addr, pmd, write) NULL 83#define follow_huge_pmd(mm, addr, pmd, write) NULL
84#define follow_huge_pud(mm, addr, pud, write) NULL
81#define prepare_hugepage_range(file, addr, len) (-EINVAL) 85#define prepare_hugepage_range(file, addr, len) (-EINVAL)
82#define pmd_huge(x) 0 86#define pmd_huge(x) 0
87#define pud_huge(x) 0
83#define is_hugepage_only_range(mm, addr, len) 0 88#define is_hugepage_only_range(mm, addr, len) 0
84#define hugetlb_free_pgd_range(tlb, addr, end, floor, ceiling) ({BUG(); 0; }) 89#define hugetlb_free_pgd_range(tlb, addr, end, floor, ceiling) ({BUG(); 0; })
85#define hugetlb_fault(mm, vma, addr, write) ({ BUG(); 0; }) 90#define hugetlb_fault(mm, vma, addr, write) ({ BUG(); 0; })