[PATCH 0/2] mm/huge_memory: drop dead split helper variants

From: Kiryl Shutsemau

Date: Thu Jul 16 2026 - 06:03:57 EST


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

Two trivial cleanups in the folio split API, found while auditing the
split helpers for the inode UAF fix [1]:

- can_split_folio() is dead: only the !THP stub remains, no definition
under CONFIG_TRANSPARENT_HUGEPAGE and no callers. Leftover from an
earlier cleanup.

- split_folio_to_list_to_order() has no direct callers; its only user
is split_folio_to_order(), which always passes a NULL list. Fold it.

These were 4/5 and 5/5 of the withdrawn series [2], rebased without the
memory_failure() dependency. 3/5 (removing split_huge_page_to_order())
is dropped: with the UAF fixed by [1] instead, memory_failure() keeps
using it. The syzbot ci failures against [2] were all caused by its
patch 1, which is gone.

No functional change.

[1] https://lore.kernel.org/linux-mm/aldjhtfVByHDQXe6@thinkstation
[2] https://lore.kernel.org/linux-mm/20260714122344.351895-1-kirill@xxxxxxxxxxxxx

Kiryl Shutsemau (Meta) (2):
mm/huge_memory: remove unused can_split_folio()
mm/huge_memory: fold split_folio_to_list_to_order() into
split_folio_to_order()

include/linux/huge_mm.h | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)


base-commit: 0e35b9b6ec0ffcc5e23cbdec09f5c622ad532b53
--
2.54.0