Commit 5f1e31d2f5977d910d0b2f5018173e99241d1940

Authored by Wanpeng Li
Committed by Linus Torvalds
1 parent 4c42efa266

mm/hugetlb: remove hugetlb_prefault

hugetlb_prefault() is not used any more, this patch removes it.

Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

include/linux/hugetlb.h
... ... @@ -55,7 +55,6 @@
55 55 void __unmap_hugepage_range(struct mmu_gather *tlb, struct vm_area_struct *vma,
56 56 unsigned long start, unsigned long end,
57 57 struct page *ref_page);
58   -int hugetlb_prefault(struct address_space *, struct vm_area_struct *);
59 58 void hugetlb_report_meminfo(struct seq_file *);
60 59 int hugetlb_report_node_meminfo(int, char *);
61 60 void hugetlb_show_meminfo(void);
... ... @@ -114,7 +113,6 @@
114 113 #define follow_hugetlb_page(m,v,p,vs,a,b,i,w) ({ BUG(); 0; })
115 114 #define follow_huge_addr(mm, addr, write) ERR_PTR(-EINVAL)
116 115 #define copy_hugetlb_page_range(src, dst, vma) ({ BUG(); 0; })
117   -#define hugetlb_prefault(mapping, vma) ({ BUG(); 0; })
118 116 static inline void hugetlb_report_meminfo(struct seq_file *m)
119 117 {
120 118 }