mm/ksm.c is doing an unneeded _notify in write_protect_page.

This commit is contained in:
SecureCRT 2012-08-17 01:40:53 +08:00
parent c95ed3371a
commit 8b041c69af

View File

@ -645,7 +645,7 @@ static int write_protect_page(struct vm_area_struct *vma, struct page *page,
* page
*/
if ((page_mapcount(page) + 2 + swapped) != page_count(page)) {
set_pte_at_notify(mm, addr, ptep, entry);
set_pte_at(mm, addr, ptep, entry);
goto out_unlock;
}
if (pte_dirty(entry))