File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -852,21 +852,9 @@ static long madvise_dontneed_free(struct vm_area_struct *vma,
852
852
* prev = NULL ; /* mmap_lock has been dropped, prev is stale */
853
853
854
854
mmap_read_lock (mm );
855
- vma = find_vma (mm , start );
855
+ vma = vma_lookup (mm , start );
856
856
if (!vma )
857
857
return - ENOMEM ;
858
- if (start < vma -> vm_start ) {
859
- /*
860
- * This "vma" under revalidation is the one
861
- * with the lowest vma->vm_start where start
862
- * is also < vma->vm_end. If start <
863
- * vma->vm_start it means an hole materialized
864
- * in the user address space within the
865
- * virtual range passed to MADV_DONTNEED
866
- * or MADV_FREE.
867
- */
868
- return - ENOMEM ;
869
- }
870
858
/*
871
859
* Potential end adjustment for hugetlb vma is OK as
872
860
* the check below keeps end within vma.
You can’t perform that action at this time.
0 commit comments