Skip to content

Commit 3e822be

Browse files
sunnanyongakpm00
authored andcommitted
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: 1b03d0d ("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]>
1 parent cb2bb9c commit 3e822be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/mm/khugepaged.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ static void usage(void)
10911091
fprintf(stderr, "\n\t\"file,all\" mem_type requires kernel built with\n");
10921092
fprintf(stderr, "\tCONFIG_READ_ONLY_THP_FOR_FS=y\n");
10931093
fprintf(stderr, "\n\tif [dir] is a (sub)directory of a tmpfs mount, tmpfs must be\n");
1094-
fprintf(stderr, "\tmounted with huge=madvise option for khugepaged tests to work\n");
1094+
fprintf(stderr, "\tmounted with huge=advise option for khugepaged tests to work\n");
10951095
fprintf(stderr, "\n\tSupported Options:\n");
10961096
fprintf(stderr, "\t\t-h: This help message.\n");
10971097
fprintf(stderr, "\t\t-s: mTHP size, expressed as page order.\n");

0 commit comments

Comments
 (0)