Re: [PATCH v2 4/4] selftests: mm: add mTHP collapse test cases

From: Nico Pache (Red Hat)

Date: Tue Aug 04 2026 - 16:43:32 EST


> Added a new command 'mthp_khugepaged' for mTHP collapse, along with the '-c'
> parameter to specify the collapse order. Additionally, added mTHP collapse
> test cases for 'collapse_full', 'collapse_empty', and 'collapse_single_mthp'
> for anonymous folios. All khugepaged test cases passed.
>
> Signed-off-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>

LGTM! I will try to come up with more test cases, and send a followup in
the future.

Thank you for working on this :)

Reviewed-by: Nico Pache (Red Hat) <nico.pache@xxxxxxxxx>

--
Nico Pache (Red Hat) <nico.pache@xxxxxxxxx>