You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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
@@ -211,9 +211,7 @@ aoeblk_gdalloc(void *vp)
|
||||
return;
|
||||
}
|
||||
|
||||
d->bufpool = mempool_create(MIN_BUFS,
|
||||
mempool_alloc_slab, mempool_free_slab,
|
||||
buf_pool_cache);
|
||||
d->bufpool = mempool_create_slab_pool(MIN_BUFS, buf_pool_cache);
|
||||
if (d->bufpool == NULL) {
|
||||
printk(KERN_ERR "aoe: aoeblk_gdalloc: cannot allocate bufpool "
|
||||
"for %ld.%ld\n", d->aoemajor, d->aoeminor);
|
||||
|
||||
Reference in New Issue
Block a user