]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/vm: fix display of page size in map_hugetlb
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 19 Sep 2020 04:20:28 +0000 (21:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 11:00:02 +0000 (13:00 +0200)
commitd11304ec0540c3b9ed04088454771be153f2f660
treeb87a19fa7ab65a2a69c92121a0c8d582beacdb93
parent685e3d17a7e4c6bc0cdd666f4c63b32eab8f4d36
selftests/vm: fix display of page size in map_hugetlb

commit 1ec882fc81e3177faf055877310dbdb0c68eb7db upstream.

The displayed size is in bytes while the text says it is in kB.

Shift it by 10 to really display kBytes.

Fixes: fa7b9a805c79 ("tools/selftest/vm: allow choosing mem size and page size in map_hugetlb")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: <stable@vger.kernel.org>
Link: https://lkml.kernel.org/r/e27481224564a93d14106e750de31189deaa8bc8.1598861977.git.christophe.leroy@csgroup.eu
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/vm/map_hugetlb.c