mempool: kvmalloc pool
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 1 Feb 2024 11:28:41 +0000 (06:28 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 13 Mar 2024 22:38:13 +0000 (18:38 -0400)
commit0225bdfafd818f895fa4a4512f124a1614e011e2
treebdc0b79b1d1731cd67e41f430b89833d2dd44bad
parent737cd174d1666620f2c41a4552623125de6bd80d
mempool: kvmalloc pool

Add mempool_init_kvmalloc_pool() and mempool_create_kvmalloc_pool(),
which wrap kvmalloc() instead of kmalloc() - kmalloc() with a vmalloc()
fallback.

This is part of a bcachefs cleanup - dropping an internal kvpmalloc()
helper (which predates kvmalloc()) along with mempool helpers; this
replaces the bcachefs-private kvpmalloc_pool.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Cc: linux-mm@kvack.org
include/linux/mempool.h
mm/mempool.c