diff options
author | Dev Jain <[email protected]> | 2024-05-09 15:24:47 +0530 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-05-11 15:41:37 -0700 |
commit | b665eed25fed247510486353985060a9ba50c6a3 (patch) | |
tree | 13388f1f107178d9d8fa772a22393140762e39bb /rust/helpers.c | |
parent | 88e4f525002bd3c28fe7a272ffcce743d07c02bd (diff) |
selftests/mm: hugetlb_madv_vs_map: avoid test skipping by querying hugepage size at runtime
Currently, the size used in mmap() is statically defined, leading to
skipping of the test on a hugepage size other than 2 MB, since munmap()
won't free the hugepage for a size greater than 2 MB. Hence, query the
size at runtime.
Also, there is no reason why a hugepage allocation should fail, since we
are using a simple mmap() using MAP_HUGETLB; hence, instead of skipping
the test, make it fail.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Dev Jain <[email protected]>
Reviewed-by: Muhammad Usama Anjum <[email protected]>
Cc: Anshuman Khandual <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions