mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
mm: remove HUGETLB_PAGE_DTOR
We can use a bit in page[1].flags to indicate that this folio belongs to hugetlb instead of using a value in page[1].dtors. That lets folio_test_hugetlb() become an inline function like it should be. We can also get rid of NULL_COMPOUND_DTOR. Link: https://lkml.kernel.org/r/20230816151201.3655946-8-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
0f2f43fabb
commit
9c5ccf2db0
@@ -1240,11 +1240,7 @@ void folio_copy(struct folio *dst, struct folio *src);
|
||||
unsigned long nr_free_buffer_pages(void);
|
||||
|
||||
enum compound_dtor_id {
|
||||
NULL_COMPOUND_DTOR,
|
||||
COMPOUND_PAGE_DTOR,
|
||||
#ifdef CONFIG_HUGETLB_PAGE
|
||||
HUGETLB_PAGE_DTOR,
|
||||
#endif
|
||||
TRANSHUGE_PAGE_DTOR,
|
||||
NR_COMPOUND_DTORS,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user