aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanyong Sun <[email protected]>2024-10-15 10:02:57 +0800
committerAndrew Morton <[email protected]>2024-10-17 00:28:11 -0700
commit3e822bed2fbd1527d88f483342b1d2a468520a9a (patch)
tree986438200af1f5b3f8408966483d5af8a0110884
parentcb2bb9c564acf45f1725696177fdb1bc067f4dbb (diff)
selftests: mm: fix the incorrect usage() info of khugepaged
The mount option of tmpfs should be huge=advise, not madvise which is not supported and may mislead the users. Link: https://lkml.kernel.org/r/[email protected] Fixes: 1b03d0d558a2 ("selftests/vm: add thp collapse file and tmpfs testing") Signed-off-by: Nanyong Sun <[email protected]> Reviewed-by: Baolin Wang <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Cc: Kefeng Wang <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Zach O'Keefe <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r--tools/testing/selftests/mm/khugepaged.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/mm/khugepaged.c b/tools/testing/selftests/mm/khugepaged.c
index 56d4480e8d3c..8a4d34cce36b 100644
--- a/tools/testing/selftests/mm/khugepaged.c
+++ b/tools/testing/selftests/mm/khugepaged.c
@@ -1091,7 +1091,7 @@ static void usage(void)
fprintf(stderr, "\n\t\"file,all\" mem_type requires kernel built with\n");
fprintf(stderr, "\tCONFIG_READ_ONLY_THP_FOR_FS=y\n");
fprintf(stderr, "\n\tif [dir] is a (sub)directory of a tmpfs mount, tmpfs must be\n");
- fprintf(stderr, "\tmounted with huge=madvise option for khugepaged tests to work\n");
+ fprintf(stderr, "\tmounted with huge=advise option for khugepaged tests to work\n");
fprintf(stderr, "\n\tSupported Options:\n");
fprintf(stderr, "\t\t-h: This help message.\n");
fprintf(stderr, "\t\t-s: mTHP size, expressed as page order.\n");