summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2023-08-16 16:11:55 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-08-21 14:28:44 -0700
commit9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a (patch)
tree2cf6a2dffee40003d9452b72e660bb64635f0f3b /mm/page_alloc.c
parent0f2f43fabb95192c73b19586ef7536d7ac7c2f8c (diff)
downloadlinux-stable-9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a.tar.gz
linux-stable-9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a.tar.bz2
linux-stable-9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a.zip
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>
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 31fec31be31e..d96dc6a3077a 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1112,7 +1112,7 @@ static __always_inline bool free_pages_prepare(struct page *page,
VM_BUG_ON_PAGE(compound && compound_order(page) != order, page);
if (compound)
- ClearPageHasHWPoisoned(page);
+ page[1].flags &= ~PAGE_FLAGS_SECOND;
for (i = 1; i < (1 << order); i++) {
if (compound)
bad += free_tail_page_prepare(page, page + i);