Skip to contentSkip to conversation

selftests/vm/run_vmtests: Fix wrong comment

PATCH In review SeongJae Park 2 participants 2 messages Apr 13, 2017 – Apr 27, 2017 1 message not in the archive Kselftest

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CAEjAshr-WNz=FC6mqDc=gR_Ab5Q5_MNWOW1ztnJbOt8G36RYvw@mail.gmail.com

#1 lore raw

PATCH v2 1/1 selftests/vm/run_vmtests: Fix wrong comment

A comment in run_vmtests is wrong because it is saying 128MB + 128MB == 258MB. This commit fixes the comment.

---
 tools/testing/selftests/vm/run_vmtests | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/vm/run_vmtests +1 -1
index 0091bde3f25f..2ed05ad00daa 100755
@@ -106,7 +106,7 @@ fi
 echo "---------------------------"
 echo "running userfaultfd_hugetlb"
 echo "---------------------------"
-# 258MB total huge pages == 128MB src and 128MB dst
+# 256MB total huge pages == 128MB src and 128MB dst
 ./userfaultfd_hugetlb 128 32 $mnt/ufd_test_file
 if [ $? -ne 0 ]; then
 	echo "[FAIL]"
Signature · 1 line
2.12.0
maintainer
#2 lore raw
Quoted 14 lines · SeongJae Park

A comment in run_vmtests is wrong because it is saying 128MB + 128MB == 258MB. This commit fixes the comment.

---
 tools/testing/selftests/vm/run_vmtests | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/vm/run_vmtests +0 -0
index 0091bde3f25f..2ed05ad00daa 100755

tools/testing/selftests/vm/run_vmtests fi · line 112

Quoted 8 lines
tools/testing/selftests/vm/run_vmtests +1 -1
@@ -106,7 +106,7 @@ fi
 echo "---------------------------"
 echo "running userfaultfd_hugetlb"
 echo "---------------------------"
-# 258MB total huge pages == 128MB src and 128MB dst
+# 256MB total huge pages == 128MB src and 128MB dst
 ./userfaultfd_hugetlb 128 32 $mnt/ufd_test_file
 if [ $? -ne 0 ]; then
 	echo "[FAIL]"

Applied to linux-kselftest next for 4.12-rc1.

thanks for the patch.

-- Shuah