diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/hugetlb.h | 8 | ||||
| -rw-r--r-- | include/linux/swapops.h | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 7d7856359920..7b5785032049 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
| @@ -99,9 +99,9 @@ int huge_pmd_unshare(struct mm_struct *mm, unsigned long *addr, pte_t *ptep); | |||
| 99 | struct page *follow_huge_addr(struct mm_struct *mm, unsigned long address, | 99 | struct page *follow_huge_addr(struct mm_struct *mm, unsigned long address, |
| 100 | int write); | 100 | int write); |
| 101 | struct page *follow_huge_pmd(struct mm_struct *mm, unsigned long address, | 101 | struct page *follow_huge_pmd(struct mm_struct *mm, unsigned long address, |
| 102 | pmd_t *pmd, int write); | 102 | pmd_t *pmd, int flags); |
| 103 | struct page *follow_huge_pud(struct mm_struct *mm, unsigned long address, | 103 | struct page *follow_huge_pud(struct mm_struct *mm, unsigned long address, |
| 104 | pud_t *pud, int write); | 104 | pud_t *pud, int flags); |
| 105 | int pmd_huge(pmd_t pmd); | 105 | int pmd_huge(pmd_t pmd); |
| 106 | int pud_huge(pud_t pmd); | 106 | int pud_huge(pud_t pmd); |
| 107 | unsigned long hugetlb_change_protection(struct vm_area_struct *vma, | 107 | unsigned long hugetlb_change_protection(struct vm_area_struct *vma, |
| @@ -133,8 +133,8 @@ static inline void hugetlb_report_meminfo(struct seq_file *m) | |||
| 133 | static inline void hugetlb_show_meminfo(void) | 133 | static inline void hugetlb_show_meminfo(void) |
| 134 | { | 134 | { |
| 135 | } | 135 | } |
| 136 | #define follow_huge_pmd(mm, addr, pmd, write) NULL | 136 | #define follow_huge_pmd(mm, addr, pmd, flags) NULL |
| 137 | #define follow_huge_pud(mm, addr, pud, write) NULL | 137 | #define follow_huge_pud(mm, addr, pud, flags) NULL |
| 138 | #define prepare_hugepage_range(file, addr, len) (-EINVAL) | 138 | #define prepare_hugepage_range(file, addr, len) (-EINVAL) |
| 139 | #define pmd_huge(x) 0 | 139 | #define pmd_huge(x) 0 |
| 140 | #define pud_huge(x) 0 | 140 | #define pud_huge(x) 0 |
diff --git a/include/linux/swapops.h b/include/linux/swapops.h index 50cbc876be56..831a3168ab35 100644 --- a/include/linux/swapops.h +++ b/include/linux/swapops.h | |||
| @@ -135,6 +135,8 @@ static inline void make_migration_entry_read(swp_entry_t *entry) | |||
| 135 | *entry = swp_entry(SWP_MIGRATION_READ, swp_offset(*entry)); | 135 | *entry = swp_entry(SWP_MIGRATION_READ, swp_offset(*entry)); |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | extern void __migration_entry_wait(struct mm_struct *mm, pte_t *ptep, | ||
| 139 | spinlock_t *ptl); | ||
| 138 | extern void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd, | 140 | extern void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd, |
| 139 | unsigned long address); | 141 | unsigned long address); |
| 140 | extern void migration_entry_wait_huge(struct vm_area_struct *vma, | 142 | extern void migration_entry_wait_huge(struct vm_area_struct *vma, |
| @@ -148,6 +150,8 @@ static inline int is_migration_entry(swp_entry_t swp) | |||
| 148 | } | 150 | } |
| 149 | #define migration_entry_to_page(swp) NULL | 151 | #define migration_entry_to_page(swp) NULL |
| 150 | static inline void make_migration_entry_read(swp_entry_t *entryp) { } | 152 | static inline void make_migration_entry_read(swp_entry_t *entryp) { } |
| 153 | static inline void __migration_entry_wait(struct mm_struct *mm, pte_t *ptep, | ||
| 154 | spinlock_t *ptl) { } | ||
| 151 | static inline void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd, | 155 | static inline void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd, |
| 152 | unsigned long address) { } | 156 | unsigned long address) { } |
| 153 | static inline void migration_entry_wait_huge(struct vm_area_struct *vma, | 157 | static inline void migration_entry_wait_huge(struct vm_area_struct *vma, |
