From ab3e137ce9ebf3a949e14b9f544a8a2144934f86 Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Sun, 3 Dec 2023 20:04:08 -0800 Subject: [PATCH 2/2] selftests/mm: use correct function to obtain huge page size Signed-off-by: Suren Baghdasaryan --- tools/testing/selftests/mm/uffd-unit-tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/mm/uffd-unit-tests.c b/tools/testing/selftests/mm/uffd-unit-tests.c index e4e271511db9..07c8dc490993 100644 --- a/tools/testing/selftests/mm/uffd-unit-tests.c +++ b/tools/testing/selftests/mm/uffd-unit-tests.c @@ -1096,7 +1096,7 @@ static void uffd_move_handle_fault(struct uffd_msg *msg, static void uffd_move_pmd_handle_fault(struct uffd_msg *msg, struct uffd_args *args) { - uffd_move_handle_fault_common(msg, args, default_huge_page_size()); + uffd_move_handle_fault_common(msg, args, read_pmd_pagesize()); } static void @@ -1199,7 +1199,7 @@ static void uffd_move_test(uffd_test_args_t *targs) static void uffd_move_pmd_test(uffd_test_args_t *targs) { - uffd_move_test_common(targs, default_huge_page_size(), + uffd_move_test_common(targs, read_pmd_pagesize(), uffd_move_pmd_handle_fault); } -- 2.43.0.rc2.451.g8631bc7472-goog