From: Andrew Morton Date: Wed, 28 Sep 2011 00:50:14 +0000 (+1000) Subject: thp-mremap-support-and-tlb-optimization-fix-fix X-Git-Tag: next-20110930~1^2~161 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=253b4119afd4a09425696302aca95f965948d2b9;p=karo-tx-linux.git 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 <> --- 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; }