]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mempool: Add mempool_init()/mempool_exit()
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 4 May 2015 23:52:20 +0000 (16:52 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 May 2018 19:14:23 +0000 (13:14 -0600)
commitc1a67fefd0546a5552289c65fe31b1d60e64b643
treee96bfb877d770c45e4b7a58d251edf3808ae5d32
parentc854ab5773be1c1a0d3cef0c3a3261f2c48ab7f8
mempool: Add mempool_init()/mempool_exit()

Allows mempools to be embedded in other structs, getting rid of a
pointer indirection from allocation fastpaths.

mempool_exit() is safe to call on an uninitialized but zeroed mempool.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/mempool.h
mm/mempool.c