mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
mm: remove free_compound_page() and the compound_page_dtors array
The only remaining destructor is free_compound_page(). Inline it into destroy_large_folio() and remove the array it used to live in. Link: https://lkml.kernel.org/r/20230816151201.3655946-7-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: David Hildenbrand <david@redhat.com> Cc: Jens Axboe <axboe@kernel.dk> Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com> Cc: Yanteng Si <siyanteng@loongson.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
da6e7bf3a0
commit
0f2f43fabb
@@ -1239,14 +1239,6 @@ void folio_copy(struct folio *dst, struct folio *src);
|
||||
|
||||
unsigned long nr_free_buffer_pages(void);
|
||||
|
||||
/*
|
||||
* Compound pages have a destructor function. Provide a
|
||||
* prototype for that function and accessor functions.
|
||||
* These are _only_ valid on the head of a compound page.
|
||||
*/
|
||||
typedef void compound_page_dtor(struct page *);
|
||||
|
||||
/* Keep the enum in sync with compound_page_dtors array in mm/page_alloc.c */
|
||||
enum compound_dtor_id {
|
||||
NULL_COMPOUND_DTOR,
|
||||
COMPOUND_PAGE_DTOR,
|
||||
@@ -1299,8 +1291,6 @@ static inline unsigned long thp_size(struct page *page)
|
||||
return PAGE_SIZE << thp_order(page);
|
||||
}
|
||||
|
||||
void free_compound_page(struct page *page);
|
||||
|
||||
#ifdef CONFIG_MMU
|
||||
/*
|
||||
* Do pte_mkwrite, but only if the vma says VM_WRITE. We do this when
|
||||
|
||||
Reference in New Issue
Block a user