diff options
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r-- | mm/mempolicy.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index d80fa7d8f720..954981b14303 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
@@ -1789,6 +1789,7 @@ static void gather_stats(struct page *page, void *private, int pte_dirty) | |||
1789 | cond_resched(); | 1789 | cond_resched(); |
1790 | } | 1790 | } |
1791 | 1791 | ||
1792 | #ifdef CONFIG_HUGETLB_PAGE | ||
1792 | static void check_huge_range(struct vm_area_struct *vma, | 1793 | static void check_huge_range(struct vm_area_struct *vma, |
1793 | unsigned long start, unsigned long end, | 1794 | unsigned long start, unsigned long end, |
1794 | struct numa_maps *md) | 1795 | struct numa_maps *md) |
@@ -1814,6 +1815,13 @@ static void check_huge_range(struct vm_area_struct *vma, | |||
1814 | gather_stats(page, md, pte_dirty(*ptep)); | 1815 | gather_stats(page, md, pte_dirty(*ptep)); |
1815 | } | 1816 | } |
1816 | } | 1817 | } |
1818 | #else | ||
1819 | static inline void check_huge_range(struct vm_area_struct *vma, | ||
1820 | unsigned long start, unsigned long end, | ||
1821 | struct numa_maps *md) | ||
1822 | { | ||
1823 | } | ||
1824 | #endif | ||
1817 | 1825 | ||
1818 | int show_numa_map(struct seq_file *m, void *v) | 1826 | int show_numa_map(struct seq_file *m, void *v) |
1819 | { | 1827 | { |