On 10 Mar 2026, at 5:49, Sayali Patil wrote:
> During cleanup, the value of /proc/sys/vm/nr_hugepages is currently being
> set to 0. At the end of the test, if all tests pass, the original
> nr_hugepages value is restored. However, if any test fails, it remains
> set to 0.
> With this patch, we ensure that the original nr_hugepages value is
> restored during cleanup, regardless of whether the test passes or fails.
>
> Fixes: 7d695b1c3695b ("selftests/mm: save and restore nr_hugepages value")
> Signed-off-by: Sayali Patil <[email protected]>
> ---
> tools/testing/selftests/mm/charge_reserved_hugetlb.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Zi Yan <[email protected]>
Best Regards,
Yan, Zi