vma.c (f8d112a4e657c65c888e6b8a8435ef61a66e4ab8) | vma.c (4f87153e82c4906e917d273ab7accd0d540aab35) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2 3/* 4 * VMA-specific functions. 5 */ 6 7#include "vma_internal.h" 8#include "vma.h" --- 864 unchanged lines hidden (view full) --- 873 874 vms->clear_ptes = true; 875 return 0; 876 877userfaultfd_error: 878munmap_gather_failed: 879end_split_failed: 880modify_vma_failed: | 1// SPDX-License-Identifier: GPL-2.0-or-later 2 3/* 4 * VMA-specific functions. 5 */ 6 7#include "vma_internal.h" 8#include "vma.h" --- 864 unchanged lines hidden (view full) --- 873 874 vms->clear_ptes = true; 875 return 0; 876 877userfaultfd_error: 878munmap_gather_failed: 879end_split_failed: 880modify_vma_failed: |
881 abort_munmap_vmas(mas_detach, /* closed = */ false); | 881 reattach_vmas(mas_detach); |
882start_split_failed: 883map_count_exceeded: 884 return error; 885} 886 887/* 888 * do_vmi_align_munmap() - munmap the aligned region from @start to @end. 889 * @vmi: The vma iterator --- 28 unchanged lines hidden (view full) --- 918 if (error) 919 goto clear_tree_failed; 920 921 /* Point of no return */ 922 vms_complete_munmap_vmas(&vms, &mas_detach); 923 return 0; 924 925clear_tree_failed: | 882start_split_failed: 883map_count_exceeded: 884 return error; 885} 886 887/* 888 * do_vmi_align_munmap() - munmap the aligned region from @start to @end. 889 * @vmi: The vma iterator --- 28 unchanged lines hidden (view full) --- 918 if (error) 919 goto clear_tree_failed; 920 921 /* Point of no return */ 922 vms_complete_munmap_vmas(&vms, &mas_detach); 923 return 0; 924 925clear_tree_failed: |
926 abort_munmap_vmas(&mas_detach, /* closed = */ false); | 926 reattach_vmas(&mas_detach); |
927gather_failed: 928 validate_mm(mm); 929 return error; 930} 931 932/* 933 * do_vmi_munmap() - munmap a given range. 934 * @vmi: The vma iterator --- 925 unchanged lines hidden --- | 927gather_failed: 928 validate_mm(mm); 929 return error; 930} 931 932/* 933 * do_vmi_munmap() - munmap a given range. 934 * @vmi: The vma iterator --- 925 unchanged lines hidden --- |