Re: [PATCH] selftests/mm: skip split_huge_page_test without the split_huge_pages file
From: Baolin Wang
Date: Thu Nov 05 2026 - 21:40:09 EST
On 11/5/26 11:02 AM, Sasha Levin wrote:
Every case in split_huge_page_test goes through
/sys/kernel/debug/split_huge_pages. When that file does not exist,
because debugfs is not mounted or the kernel has no CONFIG_DEBUG_FS, the
first write bails out of the whole test and it is reported as a failure:
Bail out! write_file(/sys/kernel/debug/split_huge_pages): No such file or directory
Skip the test in that case.
Fixes: fa6c02315f74 ("mm: huge_memory: a new debugfs interface for splitting THP tests")
Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
---
Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>