• Kent Overstreet's avatar
    mempool: kvmalloc pool · 0225bdfa
    Kent Overstreet authored
    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: default avatarKent Overstreet <kent.overstreet@linux.dev>
    Cc: linux-mm@kvack.org
    0225bdfa
mempool.c 17.6 KB