mm: remove unnecessary WARN_ONCE in page_vma_mapped_walk().
Subsystems (2)
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]>
Signed-off-by Zi Yan <[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
@@ -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>
Quoted 6 lines · Zi Yan
From: Zi Yan <[email protected]>
A non present pmd entry can appear after
pmd_lockis taken inpage_vma_mapped_walk(), even if THP migration is not enabled. TheWARN_ONCEis unnecessary.
Quoted 6 lines
Fixes 616b8371539a ("mm: thp: enable thp migration in generic path")Reported-and-tested-by Abdul Haleem <[email protected]>Signed-off-by Zi Yan <[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>