[PATCH 1/2] mm/huge_memory: remove unused can_split_folio()

From: Kiryl Shutsemau

Date: Thu Jul 16 2026 - 06:04:10 EST


From: "Kiryl Shutsemau (Meta)" <kas@xxxxxxxxxx>

can_split_folio() has no callers and no definition under
CONFIG_TRANSPARENT_HUGEPAGE; only the !THP stub remains, left behind by an
earlier cleanup. Remove it.

No functional change.

Signed-off-by: Kiryl Shutsemau (Meta) <kas@xxxxxxxxxx>
---
include/linux/huge_mm.h | 5 -----
1 file changed, 5 deletions(-)

diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h
index ad20f7f8c179..6961db4d1591 100644
--- a/include/linux/huge_mm.h
+++ b/include/linux/huge_mm.h
@@ -621,11 +621,6 @@ thp_get_unmapped_area_vmflags(struct file *filp, unsigned long addr,
return 0;
}

-static inline bool
-can_split_folio(struct folio *folio, int caller_pins, int *pextra_pins)
-{
- return false;
-}
static inline int
split_huge_page_to_list_to_order(struct page *page, struct list_head *list,
unsigned int new_order)
--
2.54.0