mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
mm: convert destroy_compound_page() to destroy_large_folio()
All callers now have a folio, so push the folio->page conversion down to this function. [akpm@linux-foundation.org: uninline destroy_large_folio() to fix build issue] Link: https://lkml.kernel.org/r/20220617175020.717127-20-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
akpm
parent
188e8caee9
commit
5375336c8c
@@ -892,11 +892,7 @@ static inline void set_compound_page_dtor(struct page *page,
|
||||
page[1].compound_dtor = compound_dtor;
|
||||
}
|
||||
|
||||
static inline void destroy_compound_page(struct page *page)
|
||||
{
|
||||
VM_BUG_ON_PAGE(page[1].compound_dtor >= NR_COMPOUND_DTORS, page);
|
||||
compound_page_dtors[page[1].compound_dtor](page);
|
||||
}
|
||||
void destroy_large_folio(struct folio *folio);
|
||||
|
||||
static inline int head_compound_pincount(struct page *head)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user