Merge tag 'mm-stable-2023-02-20-13-37' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / mm / debug.c
index 7f8e5f744e420fbeb2265b30a076724bf1073d99..96d594e162925c945104f8fe52a443f2d50a2a59 100644 (file)
@@ -94,11 +94,11 @@ static void __dump_page(struct page *page)
                        page, page_ref_count(head), mapcount, mapping,
                        page_to_pgoff(page), page_to_pfn(page));
        if (compound) {
-               pr_warn("head:%p order:%u compound_mapcount:%d subpages_mapcount:%d compound_pincount:%d\n",
+               pr_warn("head:%p order:%u entire_mapcount:%d nr_pages_mapped:%d pincount:%d\n",
                                head, compound_order(head),
-                               head_compound_mapcount(head),
-                               head_subpages_mapcount(head),
-                               head_compound_pincount(head));
+                               folio_entire_mapcount(folio),
+                               folio_nr_pages_mapped(folio),
+                               atomic_read(&folio->_pincount));
        }
 
 #ifdef CONFIG_MEMCG
@@ -215,6 +215,7 @@ void dump_mm(const struct mm_struct *mm)
                mm->def_flags, &mm->def_flags
        );
 }
+EXPORT_SYMBOL(dump_mm);
 
 static bool page_init_poisoning __read_mostly = true;