summaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mmap.c')
-rw-r--r--mm/mmap.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index ea3188bcc9b4..58e323c92c8e 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -2771,15 +2771,6 @@ static int __do_munmap(struct mm_struct *mm, unsigned long start, size_t len,
munlock_vma_pages_all(tmp);
}
- /*
- * Unmapping vmas, which have VM_HUGETLB or VM_PFNMAP,
- * need get done with write mmap_sem held since they may
- * update vm_flags.
- */
- if (downgrade &&
- (tmp->vm_flags & VM_PFNMAP))
- downgrade = false;
-
tmp = tmp->vm_next;
}
}