]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
mm/debug: Remove call to head_compound_mapcount()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 30 Dec 2022 20:18:23 +0000 (15:18 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 3 Jan 2023 04:00:55 +0000 (23:00 -0500)
Call folio_entire_mapcount() instead.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
mm/debug.c

index 8e58e8dab0b2bb54be3b9caf6c04c1dd1ce61e97..9d3d893dc7f4eafe2bd93bcf9f6a430fc45d113f 100644 (file)
@@ -94,9 +94,9 @@ 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 nr_pages_mapped:%d 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),
+                               folio_entire_mapcount(folio),
                                folio_nr_pages_mapped(folio),
                                atomic_read(&folio->_pincount));
        }