Commit af0db981 authored by Zi Yan's avatar Zi Yan Committed by Linus Torvalds

mm: remove unnecessary WARN_ONCE in page_vma_mapped_walk().

A non present pmd entry can appear after pmd_lock is taken in
page_vma_mapped_walk(), even if THP migration is not enabled.  The
WARN_ONCE is unnecessary.

Fixes: 616b8371 ("mm: thp: enable thp migration in generic path")
Signed-off-by: default avatarZi Yan <>
Reported-by: default avatarAbdul Haleem <>
Tested-by: default avatarAbdul Haleem <>
Acked-by: default avatarKirill A. Shutemov <>
Cc: Anshuman Khandual <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent de55c8b2
......@@ -167,8 +167,7 @@ bool page_vma_mapped_walk(struct page_vma_mapped_walk *pvmw)
return not_found(pvmw);
return true;
} else
WARN_ONCE(1, "Non present huge pmd without pmd migration enabled!");
return not_found(pvmw);
} else {
/* THP pmd was split under us: handle on pte level */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment