diff options
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c index e8f63d9961ea..368561f32009 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -2115,9 +2115,14 @@ gotten: | |||
2115 | * seen in the presence of one thread doing SMC and another | 2115 | * seen in the presence of one thread doing SMC and another |
2116 | * thread doing COW. | 2116 | * thread doing COW. |
2117 | */ | 2117 | */ |
2118 | ptep_clear_flush_notify(vma, address, page_table); | 2118 | ptep_clear_flush(vma, address, page_table); |
2119 | page_add_new_anon_rmap(new_page, vma, address); | 2119 | page_add_new_anon_rmap(new_page, vma, address); |
2120 | set_pte_at(mm, address, page_table, entry); | 2120 | /* |
2121 | * We call the notify macro here because, when using secondary | ||
2122 | * mmu page tables (such as kvm shadow page tables), we want the | ||
2123 | * new page to be mapped directly into the secondary page table. | ||
2124 | */ | ||
2125 | set_pte_at_notify(mm, address, page_table, entry); | ||
2121 | update_mmu_cache(vma, address, entry); | 2126 | update_mmu_cache(vma, address, entry); |
2122 | if (old_page) { | 2127 | if (old_page) { |
2123 | /* | 2128 | /* |