diff options
author | David Rientjes <rientjes@google.com> | 2015-03-24 16:22:54 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-03-24 20:00:18 -0600 |
commit | cbc4ffdbe72a1bad3dbed27bb6b2eaba2b11bcc3 (patch) | |
tree | d8d150b839f0aa5908400f101dc6a9af15143b7d /drivers/block | |
parent | 23fe8f8b1101ec77befc995ab15fad82d9d91d16 (diff) | |
download | op-kernel-dev-cbc4ffdbe72a1bad3dbed27bb6b2eaba2b11bcc3.zip op-kernel-dev-cbc4ffdbe72a1bad3dbed27bb6b2eaba2b11bcc3.tar.gz |
block, drbd: use mempool_create_slab_pool()
Mempools created for slab caches should use
mempool_create_slab_pool().
Cc: Lars Ellenberg <drbd-dev@lists.linbit.com>
Cc: Jens Axboe <axboe@fb.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index 1fc8342..81fde9e 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; |