From: Shaohua Li Date: Fri, 16 Dec 2011 04:50:40 +0000 (+1100) Subject: thp: remove unnecessary tlb flush for mprotect X-Git-Tag: next-20111221~2^2~37 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2e4220527b10f1e0f75a4b05653bf4f0f0b6a2d6;p=karo-tx-linux.git thp: remove unnecessary tlb flush for mprotect change_protection() will do TLB flush later, don't need duplicate tlb flush. Signed-off-by: Shaohua Li Reviewed-by: Andrea Arcangeli Cc: David Rientjes Cc: Johannes Weiner Cc: Minchan Kim Signed-off-by: Andrew Morton --- diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 763711121ef5..964fc5a2edd2 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -1145,7 +1145,6 @@ int change_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, entry = pmd_modify(entry, newprot); set_pmd_at(mm, addr, pmd, entry); spin_unlock(&vma->vm_mm->page_table_lock); - flush_tlb_range(vma, addr, addr + HPAGE_PMD_SIZE); ret = 1; } } else