-
- Downloads
mm: Change return type int to vm_fault_t for fault handlers
Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Ref-> commit 1c8f4220 ("mm: change return type to vm_fault_t") The aim is to change the return type of finish_fault() and handle_mm_fault() to vm_fault_t type. As part of that clean up return type of all other recursively called functions have been changed to vm_fault_t type. The places from where handle_mm_fault() is getting invoked will be change to vm_fault_t type but in a separate patch. vmf_error() is the newly introduce inline function in 4.17-rc6. [akpm@linux-foundation.org: don't shadow outer local `ret' in __do_huge_pmd_anonymous_page()] Link: http://lkml.kernel.org/r/20180604171727.GA20279@jordon-HP-15-Notebook-PC Signed-off-by:Souptick Joarder <jrdr.linux@gmail.com> Reviewed-by:
Matthew Wilcox <mawilcox@microsoft.com> Reviewed-by:
Andrew Morton <akpm@linux-foundation.org> Cc: Matthew Wilcox <willy@infradead.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- fs/userfaultfd.c 2 additions, 4 deletionsfs/userfaultfd.c
- include/linux/huge_mm.h 5 additions, 4 deletionsinclude/linux/huge_mm.h
- include/linux/hugetlb.h 1 addition, 1 deletioninclude/linux/hugetlb.h
- include/linux/mm.h 7 additions, 7 deletionsinclude/linux/mm.h
- include/linux/oom.h 1 addition, 1 deletioninclude/linux/oom.h
- include/linux/swapops.h 3 additions, 2 deletionsinclude/linux/swapops.h
- include/linux/userfaultfd_k.h 3 additions, 2 deletionsinclude/linux/userfaultfd_k.h
- kernel/memremap.c 1 addition, 1 deletionkernel/memremap.c
- mm/gup.c 2 additions, 2 deletionsmm/gup.c
- mm/huge_memory.c 16 additions, 15 deletionsmm/huge_memory.c
- mm/hugetlb.c 13 additions, 16 deletionsmm/hugetlb.c
- mm/internal.h 1 addition, 1 deletionmm/internal.h
- mm/khugepaged.c 2 additions, 1 deletionmm/khugepaged.c
- mm/memory.c 46 additions, 44 deletionsmm/memory.c
- mm/shmem.c 3 additions, 2 deletionsmm/shmem.c
Loading
Please register or sign in to comment