From: David Rientjes Date: Tue, 24 Mar 2015 23:22:54 +0000 (-0700) Subject: block, drbd: use mempool_create_slab_pool() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cbc4ffdbe72a1bad3dbed27bb6b2eaba2b11bcc3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git block, drbd: use mempool_create_slab_pool() Mempools created for slab caches should use mempool_create_slab_pool(). Cc: Lars Ellenberg Cc: Jens Axboe Signed-off-by: David Rientjes Signed-off-by: Jens Axboe --- diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index 1fc83427199c..81fde9ef7f8e 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c @@ -2107,13 +2107,12 @@ static int drbd_create_mempools(void) if (drbd_md_io_page_pool == NULL) goto Enomem; - drbd_request_mempool = mempool_create(number, - mempool_alloc_slab, mempool_free_slab, drbd_request_cache); + drbd_request_mempool = mempool_create_slab_pool(number, + drbd_request_cache); if (drbd_request_mempool == NULL) goto Enomem; - drbd_ee_mempool = mempool_create(number, - mempool_alloc_slab, mempool_free_slab, drbd_ee_cache); + drbd_ee_mempool = mempool_create_slab_pool(number, drbd_ee_cache); if (drbd_ee_mempool == NULL) goto Enomem;