summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKiryl Shutsemau (Meta) <kas@kernel.org>2026-07-16 11:03:45 +0100
committerAndrew Morton <akpm@linux-foundation.org>2026-08-06 18:57:16 -0700
commit2549ebcaa8361918d7e61e829f06366151a9623c (patch)
tree40354dff17003fc4bb80370c0830f92ddd69ae52 /include/linux
parentd6f1586aa95ed8e9189395cc3a3b07233abe9b6f (diff)
mm/huge_memory: fold split_folio_to_list_to_order() into split_folio_to_order()
split_folio_to_list_to_order() had no direct callers; its only user was split_folio_to_order(), which always passed a NULL list. Fold it into split_folio_to_order() and call split_huge_page_to_list_to_order() directly. No functional change. Link: https://lore.kernel.org/20260716100345.473473-3-kirill@shutemov.name Signed-off-by: Kiryl Shutsemau (Meta) <kas@kernel.org> Acked-by: Usama Arif <usama.arif@linux.dev> Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> Reviewed-by: Zi Yan <ziy@nvidia.com> Acked-by: David Hildenbrand (Arm) <david@kernel.org> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Barry Song <baohua@kernel.org> Cc: Dev Jain <dev.jain@arm.com> Cc: Lance Yang <lance.yang@linux.dev> Cc: Liam R. Howlett <liam@infradead.org> Cc: Nico Pache <npache@redhat.com> Cc: Ryan Roberts <ryan.roberts@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/huge_mm.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h
index fc27637e2688..c745f7ad2298 100644
--- a/include/linux/huge_mm.h
+++ b/include/linux/huge_mm.h
@@ -823,15 +823,9 @@ static inline bool is_pmd_order(unsigned int order)
return order == HPAGE_PMD_ORDER;
}
-static inline int split_folio_to_list_to_order(struct folio *folio,
- struct list_head *list, int new_order)
-{
- return split_huge_page_to_list_to_order(&folio->page, list, new_order);
-}
-
static inline int split_folio_to_order(struct folio *folio, int new_order)
{
- return split_folio_to_list_to_order(folio, NULL, new_order);
+ return split_huge_page_to_list_to_order(&folio->page, NULL, new_order);
}
/**