From 2f897235a22a00f422cdc9848a6d3a0245791b4b Mon Sep 17 00:00:00 2001 From: Shaohua Li Date: Fri, 2 Dec 2011 14:13:08 +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