mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04: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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
fec433aaaa
commit
93d2341c75
19 changed files with 39 additions and 72 deletions
|
|
@ -220,8 +220,8 @@ int __init metapage_init(void)
|
|||
if (metapage_cache == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
metapage_mempool = mempool_create(METAPOOL_MIN_PAGES, mempool_alloc_slab,
|
||||
mempool_free_slab, metapage_cache);
|
||||
metapage_mempool = mempool_create_slab_pool(METAPOOL_MIN_PAGES,
|
||||
metapage_cache);
|
||||
|
||||
if (metapage_mempool == NULL) {
|
||||
kmem_cache_destroy(metapage_cache);
|
||||
|
|
|
|||
Loading…
Reference in a new issue