aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-10-09 16:13:30 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-10-09 16:13:30 -0400
commit670aee3fc7ac37ae947f8b582d87b51d5fa36524 (patch)
tree9885998483d4506208e5aef9c13c8a86adea20bb /mm/hugetlb.c
parentd61e87ac53292a3138b4354b687558973686b6ca (diff)
parent55582bccdc1e89ecc973c260d46e247df675d4df (diff)
Merge branches 'pm-devfreq' and 'pm-cpufreq'
* pm-devfreq: PM / devfreq: fix double kfree PM / devfreq: Fix governor_store() * pm-cpufreq: cpufreq: prevent lockup on reading scaling_available_frequencies cpufreq: acpi_cpufreq: prevent crash on reading freqdomain_cpus
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 999fb0aef8f1..9cc773483624 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -3202,6 +3202,14 @@ static void unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma,
3202 continue; 3202 continue;
3203 3203
3204 /* 3204 /*
3205 * Shared VMAs have their own reserves and do not affect
3206 * MAP_PRIVATE accounting but it is possible that a shared
3207 * VMA is using the same page so check and skip such VMAs.
3208 */
3209 if (iter_vma->vm_flags & VM_MAYSHARE)
3210 continue;
3211
3212 /*
3205 * Unmap the page from other VMAs without their own reserves. 3213 * Unmap the page from other VMAs without their own reserves.
3206 * They get marked to be SIGKILLed if they fault in these 3214 * They get marked to be SIGKILLed if they fault in these
3207 * areas. This is because a future no-page fault on this VMA 3215 * areas. This is because a future no-page fault on this VMA