X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=mm%2Fmprotect.c;h=bd0f409922cb2fc133f9fecba64a839380d4f937;hb=785373b4c38719f4af6775845df6be1dfaea120f;hp=4180ad8cc9c5e70c661efc8f30416af40e9c0066;hpb=699950741604979437a59069855d1c34910587f0;p=mirror_ubuntu-artful-kernel.git diff --git a/mm/mprotect.c b/mm/mprotect.c index 4180ad8cc9c5..bd0f409922cb 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c @@ -244,7 +244,7 @@ static unsigned long change_protection_range(struct vm_area_struct *vma, BUG_ON(addr >= end); pgd = pgd_offset(mm, addr); flush_cache_range(vma, addr, end); - set_tlb_flush_pending(mm); + inc_tlb_flush_pending(mm); do { next = pgd_addr_end(addr, end); if (pgd_none_or_clear_bad(pgd)) @@ -256,7 +256,7 @@ static unsigned long change_protection_range(struct vm_area_struct *vma, /* Only flush the TLB if we actually modified any entries: */ if (pages) flush_tlb_range(vma, start, end); - clear_tlb_flush_pending(mm); + dec_tlb_flush_pending(mm); return pages; }