summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/vm/soft-dirty.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/vm/soft-dirty.c')
-rw-r--r--tools/testing/selftests/vm/soft-dirty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/vm/soft-dirty.c b/tools/testing/selftests/vm/soft-dirty.c
index e3a43f5d4fa2..21d8830c5f24 100644
--- a/tools/testing/selftests/vm/soft-dirty.c
+++ b/tools/testing/selftests/vm/soft-dirty.c
@@ -91,7 +91,7 @@ static void test_hugepage(int pagemap_fd, int pagesize)
for (i = 0; i < hpage_len; i++)
map[i] = (char)i;
- if (check_huge(map)) {
+ if (check_huge_anon(map, 1, hpage_len)) {
ksft_test_result_pass("Test %s huge page allocation\n", __func__);
clear_softdirty();