Skip to contentSkip to conversation

mm: remove unnecessary WARN_ONCE in page_vma_mapped_walk().

PATCH Applied Zi Yan 2 participants 2 messages Oct 3, 2017

Subsystems (2)
lore
Share & tools
lore

Zi Yan

author
#0 lore raw

PATCH 1/1 mm: remove unnecessary WARN_ONCE in page_vma_mapped_walk().

From: Zi Yan <[email protected]>

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 616b8371539a ("mm: thp: enable thp migration in generic path")
Reported-and-tested-by Abdul Haleem <[email protected]>
Cc "Kirill A. Shutemov" <[email protected]>
Cc Anshuman Khandual <[email protected]>
Cc Andrew Morton <[email protected]>
---
 mm/page_vma_mapped.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/page_vma_mapped.c +1 -2
index 6a03946469a9..eb462e7db0a9 100644
@@ -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 */
Signature · 7 lines
2.14.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Zi Yan

From: Zi Yan <[email protected]>

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.

Quoted 6 lines
Fixes 616b8371539a ("mm: thp: enable thp migration in generic path")
Reported-and-tested-by Abdul Haleem <[email protected]>
Cc "Kirill A. Shutemov" <[email protected]>
Cc Anshuman Khandual <[email protected]>
Cc Andrew Morton <[email protected]>
Signature · 7 lines
 Kirill A. Shutemov

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>