mm: dump page when hitting a VM_BUG_ON using VM_BUG_ON_PAGE
[platform/adaptation/renesas_rcar/renesas_kernel.git] / mm / compaction.c
index 3a91a2e..e0ab02d 100644 (file)
@@ -601,7 +601,7 @@ isolate_migratepages_range(struct zone *zone, struct compact_control *cc,
                if (__isolate_lru_page(page, mode) != 0)
                        continue;
 
-               VM_BUG_ON(PageTransCompound(page));
+               VM_BUG_ON_PAGE(PageTransCompound(page), page);
 
                /* Successfully isolated */
                cc->finished_update_migrate = true;