aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/hugetlb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index dec5772c8c5c..f6347ec4fd0a 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -2564,8 +2564,7 @@ retry_avoidcopy:
2564 * at the time of fork() could consume its reserves on COW instead 2564 * at the time of fork() could consume its reserves on COW instead
2565 * of the full address range. 2565 * of the full address range.
2566 */ 2566 */
2567 if (!(vma->vm_flags & VM_MAYSHARE) && 2567 if (is_vma_resv_set(vma, HPAGE_RESV_OWNER) &&
2568 is_vma_resv_set(vma, HPAGE_RESV_OWNER) &&
2569 old_page != pagecache_page) 2568 old_page != pagecache_page)
2570 outside_reserve = 1; 2569 outside_reserve = 1;
2571 2570