aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2023-01-11 14:29:06 +0000
committerAndrew Morton <akpm@linux-foundation.org>2023-02-02 22:32:59 -0800
commita60d5942cc9bd65806b69360020d9b1664c747ad (patch)
treed2e4aca53e9fba4f1d91888b25c77de34fa8ab7c /mm/page_alloc.c
parentf04029f34e8c3750b8fb39b54e788b9355d1b912 (diff)
downloadlinux-a60d5942cc9bd65806b69360020d9b1664c747ad.tar.gz
mm: convert destroy_large_folio() to use folio_dtor
Replace a use of compound_dtor. Link: https://lkml.kernel.org/r/20230111142915.1001531-21-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index f15e0e15243f7..88494e82843dd 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -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);