Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75187e46 authored by Kent Overstreet's avatar Kent Overstreet Committed by Bernhard Thoben
Browse files

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: default avatarKent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
(cherry picked from commit c1a67fefd0546a5552289c65fe31b1d60e64b643)
parent d4cb5a28
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment