aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorLi Zhijian <[email protected]>2018-03-09 23:51:16 +0000
committerLinus Torvalds <[email protected]>2018-03-10 00:40:01 +0000
commit0627be7d3c871035364923559543c9b2ff5357f2 (patch)
tree5b861c8c86bafb67e3f9283b95e6fedc3165a54d /lib/string_helpers.c
parentmm/page_alloc: fix memmap_init_zone pageblock alignment (diff)
downloadkernel-0627be7d3c871035364923559543c9b2ff5357f2.tar.gz
kernel-0627be7d3c871035364923559543c9b2ff5357f2.zip
selftests/vm/run_vmtests: adjust hugetlb size according to nr_cpus
Fix userfaultfd_hugetlb on hosts which have more than 64 cpus. --------------------------- running userfaultfd_hugetlb --------------------------- invalid MiB Usage: <MiB> <bounces> [FAIL] Via userfaultfd.c we can know, hugetlb_size needs to meet hugetlb_size >= nr_cpus * hugepage_size. hugepage_size is often 2M, so when host cpus > 64, it requires more than 128M. [[email protected]: update changelog/comments and variable name] Link: http://lkml.kernel.org/r/[email protected] Link: http://lkml.kernel.org/r/[email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Li Zhijian <[email protected]> Cc: Shuah Khan <[email protected]> Cc: SeongJae Park <[email protected]> Cc: Philippe Ombredanne <[email protected]> Cc: Aneesh Kumar K.V <[email protected]> Cc: Mike Kravetz <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions