X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Fmprotect.c;h=1d4d69790e59920e8876971dc0ed8adeb48175b8;hb=5b4db0c2f25925fcfc17fa7233b7b90dc023d207;hp=3b8f3c0c63f3b948cda9edca535d7aaa65b4a38b;hpb=946b92437e550d6ed80213bf54a1f383e141aede;p=linux-2.6 diff --git a/mm/mprotect.c b/mm/mprotect.c index 3b8f3c0c63..1d4d69790e 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c @@ -53,7 +53,6 @@ static void change_pte_range(struct mm_struct *mm, pmd_t *pmd, if (dirty_accountable && pte_dirty(ptent)) ptent = pte_mkwrite(ptent); set_pte_at(mm, addr, pte, ptent); - lazy_mmu_prot_update(ptent); #ifdef CONFIG_MIGRATION } else if (!pte_file(oldpte)) { swp_entry_t entry = pte_to_swp_entry(oldpte); @@ -128,7 +127,7 @@ static void change_protection(struct vm_area_struct *vma, flush_tlb_range(vma, start, end); } -static int +int mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev, unsigned long start, unsigned long end, unsigned long newflags) {