hugetlb, rmap: use hugepage_add_new_anon_rmap() in hugetlb_cow()
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Fri, 10 Sep 2010 04:23:04 +0000 (13:23 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Sep 2010 00:29:18 +0000 (17:29 -0700)
commitcd67f0d2a9a6b5b9f79f4343dc8805757d9ebae2
tree5e97527cfdb295d494e6c97d23b75ce59a25f664
parent433abed6c6f76ca079a9564f2a1a51fd28ebe0ca
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>
mm/hugetlb.c