[PATCH] mempool: use mempool_create_slab_pool()
Modify well over a dozen mempool users to call mempool_create_slab_pool() rather than calling mempool_create() with extra arguments, saving about 30 lines of code and increasing readability. Signed-off-by: Matthew Dobson <colpatch@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
fec433aaaa
commit
93d2341c75
@@ -1174,8 +1174,7 @@ static int __init dm_snapshot_init(void)
|
||||
goto bad4;
|
||||
}
|
||||
|
||||
pending_pool = mempool_create(128, mempool_alloc_slab,
|
||||
mempool_free_slab, pending_cache);
|
||||
pending_pool = mempool_create_slab_pool(128, pending_cache);
|
||||
if (!pending_pool) {
|
||||
DMERR("Couldn't create pending pool.");
|
||||
r = -ENOMEM;
|
||||
|
Reference in New Issue
Block a user