]> git.baikalelectronics.ru Git - kernel.git/commit
mm/large system hash: use vmalloc for size > MAX_ORDER when !hashdist
authorNicholas Piggin <npiggin@gmail.com>
Fri, 12 Jul 2019 03:59:09 +0000 (20:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Jul 2019 18:05:46 +0000 (11:05 -0700)
commit868dec32f215d53cee759831d1c2e0f1cc4949e7
tree00553e799f8002bffb51a1e10664f0f1f00082d5
parent4c6abd14e364d5d0b656ba8cc7a7caaeee73db9b
mm/large system hash: use vmalloc for size > MAX_ORDER when !hashdist

The kernel currently clamps large system hashes to MAX_ORDER when hashdist
is not set, which is rather arbitrary.

vmalloc space is limited on 32-bit machines, but this shouldn't result in
much more used because of small physical memory limiting system hash
sizes.

Include "vmalloc" or "linear" in the kernel log message.

Link: http://lkml.kernel.org/r/20190605144814.29319-1-npiggin@gmail.com
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c