From 20747d8341d6b80a1aa56aa7fcdc15b04140d131 Mon Sep 17 00:00:00 2001 From: Shaohua Li Date: Wed, 30 Nov 2011 15:11:59 +1100 Subject: [PATCH] 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 --- mm/huge_memory.c | 1 - 1 file changed, 1 deletion(-) 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 -- 2.39.5