mm: huge_memory: Change return type to vm_fault_t
Subsystems (2)
PATCH 1/1 mm: huge_memory: Change return type to vm_fault_t
Use new return type vm_fault_t for vmf_insert_pfn_pud() and vmf_insert_pfn_pmd()
Signed-off-by Souptick Joarder <[email protected]>
Reviewed-by Matthew Wilcox <[email protected]>
--- include/linux/huge_mm.h | 5 +++-- mm/huge_memory.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-)
include/linux/huge_mm.h +3 -2
@@ -3,6 +3,7 @@#define _LINUX_HUGE_MM_H#include <linux/sched/coredump.h> +#include <linux/mm_types.h> #include <linux/fs.h> /* only for vma_is_dax() */
@@ -46,9 +47,9 @@ extern bool move_huge_pmd(struct vm_area_struct *vma, unsigned long old_addr,extern int change_huge_pmd (struct vm_area_struct *vma,pmd_t *pmd,unsigned long addr,pgprot_t newprot,int prot_numa); -int vmf_insert_pfn_pmd (struct vm_area_struct *vma,unsigned long addr, +vm_fault_t vmf_insert_pfn_pmd (struct vm_area_struct *vma,unsigned long addr,pmd_t *pmd,pfn_t pfn,bool write); -int vmf_insert_pfn_pud (struct vm_area_struct *vma,unsigned long addr, +vm_fault_t vmf_insert_pfn_pud (struct vm_area_struct *vma,unsigned long addr,pud_t *pud,pfn_t pfn,bool write);enum transparent_hugepage_flag {TRANSPARENT_HUGEPAGE_FLAG ,
mm/huge_memory.c +2 -2
@@ -755,7 +755,7 @@ static void insert_pfn_pmd(struct vm_area_struct *vma, unsigned long addr,spin_unlock (ptl); } -int vmf_insert_pfn_pmd (struct vm_area_struct *vma,unsigned long addr, +vm_fault_t vmf_insert_pfn_pmd (struct vm_area_struct *vma,unsigned long addr,pmd_t *pmd,pfn_t pfn,bool write) {pgprot_t pgprot = vma->vm_page_prot;
@@ -815,7 +815,7 @@ static void insert_pfn_pud(struct vm_area_struct *vma, unsigned long addr,spin_unlock (ptl); } -int vmf_insert_pfn_pud (struct vm_area_struct *vma,unsigned long addr, +vm_fault_t vmf_insert_pfn_pud (struct vm_area_struct *vma,unsigned long addr,pud_t *pud,pfn_t pfn,bool write) {pgprot_t pgprot = vma->vm_page_prot;
Signature · 1 line
1.9.1