]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
mm: Convert destroy_large_folio() to use folio_dtor
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 4 Sep 2022 23:58:56 +0000 (19:58 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 3 Jan 2023 04:00:56 +0000 (23:00 -0500)
Replace a use of compound_dtor.

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

index d309c48afc52121b50718b99d9d5ea5cd6b4b7f1..5f24eff14b96760bce1952dc8f7a8997ca032fb1 100644 (file)
@@ -807,7 +807,7 @@ void prep_compound_page(struct page *page, unsigned int order)
 
 void destroy_large_folio(struct folio *folio)
 {
-       enum compound_dtor_id dtor = folio_page(folio, 1)->compound_dtor;
+       enum compound_dtor_id dtor = folio->_folio_dtor;
 
        VM_BUG_ON_FOLIO(dtor >= NR_COMPOUND_DTORS, folio);
        compound_page_dtors[dtor](&folio->page);