From e528057f3a01903167dd3dadddbbd298517d5503 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 5 Oct 2011 11:43:01 +1100 Subject: [PATCH] thp-mremap-support-and-tlb-optimization-fix-fix Cc: Andrea Arcangeli Cc: Hugh Dickins Cc: Johannes Weiner Cc: Mel Gorman Cc: Rik van Riel Signed-off-by: Andrew Morton --- mm/huge_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index b975dc1db24f..fffab174f3e7 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -1072,7 +1072,7 @@ int move_huge_pmd(struct vm_area_struct *vma, struct vm_area_struct *new_vma, * The destination pmd shouldn't be established, free_pgtables() * should have release it. */ - if (!WARN_ON(pmd_none(*new_pmd))) { + if (WARN_ON(!pmd_none(*new_pmd))) { VM_BUG_ON(pmd_trans_huge(*new_pmd)); goto out; } -- 2.39.5