diff options
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index c5aa43993364..27938c441b6f 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -2898,8 +2898,7 @@ retry: | |||
2898 | if (anon_rmap) { | 2898 | if (anon_rmap) { |
2899 | ClearPagePrivate(page); | 2899 | ClearPagePrivate(page); |
2900 | hugepage_add_new_anon_rmap(page, vma, address); | 2900 | hugepage_add_new_anon_rmap(page, vma, address); |
2901 | } | 2901 | } else |
2902 | else | ||
2903 | page_dup_rmap(page); | 2902 | page_dup_rmap(page); |
2904 | new_pte = make_huge_pte(vma, page, ((vma->vm_flags & VM_WRITE) | 2903 | new_pte = make_huge_pte(vma, page, ((vma->vm_flags & VM_WRITE) |
2905 | && (vma->vm_flags & VM_SHARED))); | 2904 | && (vma->vm_flags & VM_SHARED))); |