diff options
| author | Donet Tom <[email protected]> | 2025-04-10 10:07:48 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-05-12 00:48:29 +0000 |
| commit | 585a9145886ad1d06b39ddcd72d457f37ebb4ff4 (patch) | |
| tree | cc2dc24dc98d762c619f1cf011b1140c824e74af /mm/hugetlb.c | |
| parent | maple_tree: reorder mas->store_type case statements (diff) | |
| download | kernel-585a9145886ad1d06b39ddcd72d457f37ebb4ff4.tar.gz kernel-585a9145886ad1d06b39ddcd72d457f37ebb4ff4.zip | |
selftests/mm: restore default nr_hugepages value during cleanup in hugetlb_reparenting_test.sh
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.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 29750f71a9b4 ("hugetlb_cgroup: add hugetlb_cgroup reservation tests")
Signed-off-by: Donet Tom <[email protected]>
Cc: Li Wang <[email protected]>
Cc: "Ritesh Harjani (IBM)" <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Waiman Long <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions
