diff options
author | Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> | 2010-09-10 00:23:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-09-23 20:29:18 -0400 |
commit | cd67f0d2a9a6b5b9f79f4343dc8805757d9ebae2 (patch) | |
tree | 5e97527cfdb295d494e6c97d23b75ce59a25f664 /mm | |
parent | 433abed6c6f76ca079a9564f2a1a51fd28ebe0ca (diff) |
hugetlb, rmap: use hugepage_add_new_anon_rmap() in hugetlb_cow()
Obviously, setting anon_vma for COWed hugepage should be done
by hugepage_add_new_anon_rmap() to scan vmas faster.
This patch fixes it.
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Acked-by: Andrea Arcangeli <aarcange@redhat.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/hugetlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index cc5be788a39f..9519f3f6c1da 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -2404,7 +2404,7 @@ retry_avoidcopy: | |||
2404 | set_huge_pte_at(mm, address, ptep, | 2404 | set_huge_pte_at(mm, address, ptep, |
2405 | make_huge_pte(vma, new_page, 1)); | 2405 | make_huge_pte(vma, new_page, 1)); |
2406 | page_remove_rmap(old_page); | 2406 | page_remove_rmap(old_page); |
2407 | hugepage_add_anon_rmap(new_page, vma, address); | 2407 | hugepage_add_new_anon_rmap(new_page, vma, address); |
2408 | /* Make the old page be freed below */ | 2408 | /* Make the old page be freed below */ |
2409 | new_page = old_page; | 2409 | new_page = old_page; |
2410 | mmu_notifier_invalidate_range_end(mm, | 2410 | mmu_notifier_invalidate_range_end(mm, |