From 253b4119afd4a09425696302aca95f965948d2b9 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 28 Sep 2011 10:50:14 +1000 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