X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;ds=sidebyside;f=mm%2Fmemory.c;h=c3b9097251c5769959b044e74ed1da6de35392e6;hb=988adfdffdd43cfd841df734664727993076d7cb;hp=fbf74112de5bfa39496ae491bd39ea9ef38ae00d;hpb=26178ec11ef3c6c814bf16a0a2b9c2f7242e3c64;p=cascardo%2Flinux.git diff --git a/mm/memory.c b/mm/memory.c index fbf74112de5b..c3b9097251c5 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -239,6 +239,7 @@ static void tlb_flush_mmu_tlbonly(struct mmu_gather *tlb) return; tlb_flush(tlb); + mmu_notifier_invalidate_range(tlb->mm, tlb->start, tlb->end); #ifdef CONFIG_HAVE_RCU_TABLE_FREE tlb_table_flush(tlb); #endif @@ -2220,7 +2221,7 @@ gotten: * seen in the presence of one thread doing SMC and another * thread doing COW. */ - ptep_clear_flush(vma, address, page_table); + ptep_clear_flush_notify(vma, address, page_table); page_add_new_anon_rmap(new_page, vma, address); mem_cgroup_commit_charge(new_page, memcg, false); lru_cache_add_active_or_unevictable(new_page, vma);