aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index f1bb534254f6..c9b40e3a9936 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -2474,7 +2474,6 @@ static int unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma,
2474 struct hstate *h = hstate_vma(vma); 2474 struct hstate *h = hstate_vma(vma);
2475 struct vm_area_struct *iter_vma; 2475 struct vm_area_struct *iter_vma;
2476 struct address_space *mapping; 2476 struct address_space *mapping;
2477 struct prio_tree_iter iter;
2478 pgoff_t pgoff; 2477 pgoff_t pgoff;
2479 2478
2480 /* 2479 /*
@@ -2491,7 +2490,7 @@ static int unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma,
2491 * __unmap_hugepage_range() is called as the lock is already held 2490 * __unmap_hugepage_range() is called as the lock is already held
2492 */ 2491 */
2493 mutex_lock(&mapping->i_mmap_mutex); 2492 mutex_lock(&mapping->i_mmap_mutex);
2494 vma_prio_tree_foreach(iter_vma, &iter, &mapping->i_mmap, pgoff, pgoff) { 2493 vma_interval_tree_foreach(iter_vma, &mapping->i_mmap, pgoff, pgoff) {
2495 /* Do not unmap the current VMA */ 2494 /* Do not unmap the current VMA */
2496 if (iter_vma == vma) 2495 if (iter_vma == vma)
2497 continue; 2496 continue;