diff options
| author | Vishal Moola (Oracle) <[email protected]> | 2025-04-01 02:10:25 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-05-12 00:48:08 +0000 |
| commit | b4c829fa4d56f3b566bbbb41c9a8ff0c83ae84c5 (patch) | |
| tree | 0c06149c9b00960a7851fd5e52b92829ac273b9d /mm/hugetlb.c | |
| parent | acpi,srat: give memory block size advice based on CFMWS alignment (diff) | |
| download | kernel-b4c829fa4d56f3b566bbbb41c9a8ff0c83ae84c5.tar.gz kernel-b4c829fa4d56f3b566bbbb41c9a8ff0c83ae84c5.zip | |
mm/compaction: use folio in hugetlb pathway
Use a folio in the hugetlb pathway during the compaction migrate-able
pageblock scan.
This removes a call to compound_head().
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Vishal Moola (Oracle) <[email protected]>
Acked-by: Oscar Salvador <[email protected]>
Reviewed-by: Zi Yan <[email protected]>
Cc: Muchun Song <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/hugetlb.c')
| -rw-r--r-- | mm/hugetlb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index a44d4b0d844c..a2c111447812 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -2896,10 +2896,9 @@ free_new: return ret; } -int isolate_or_dissolve_huge_page(struct page *page, struct list_head *list) +int isolate_or_dissolve_huge_folio(struct folio *folio, struct list_head *list) { struct hstate *h; - struct folio *folio = page_folio(page); int ret = -EBUSY; /* |
