diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-08-16 17:11:51 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-08-21 23:28:43 +0200 |
commit | 454a00c40a21c59e99c526fe8cc57bd029cf8f0e (patch) | |
tree | 7295e10b862852ef94483d0343371daa9c7cbb91 /mm/page_alloc.c | |
parent | mm: call free_huge_page() directly (diff) | |
download | linux-454a00c40a21c59e99c526fe8cc57bd029cf8f0e.tar.xz linux-454a00c40a21c59e99c526fe8cc57bd029cf8f0e.zip |
mm: convert free_huge_page() to free_huge_folio()
Pass a folio instead of the head page to save a few instructions. Update
the documentation, at least in English.
Link: https://lkml.kernel.org/r/20230816151201.3655946-4-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Cc: Yanteng Si <siyanteng@loongson.cn>
Cc: David Hildenbrand <david@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 744848593360..30dc444436cc 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -610,7 +610,7 @@ void destroy_large_folio(struct folio *folio) enum compound_dtor_id dtor = folio->_folio_dtor; if (folio_test_hugetlb(folio)) { - free_huge_page(&folio->page); + free_huge_folio(folio); return; } |