diff options
author | Matthew Dobson <colpatch@us.ibm.com> | 2006-03-26 04:37:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-26 11:57:00 -0500 |
commit | 93d2341c750cda0df48a6cc67b35fe25f1ec47df (patch) | |
tree | f098a3bbfae65ce967591ee94d605c6e6bea21c6 /drivers/block | |
parent | fec433aaaae32a02329ad7d71b0f3c91b7525077 (diff) |
[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>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/aoe/aoeblk.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/block/aoe/aoeblk.c b/drivers/block/aoe/aoeblk.c index 32fea55fac48..393b86a3dbf8 100644 --- a/drivers/block/aoe/aoeblk.c +++ b/drivers/block/aoe/aoeblk.c | |||
@@ -211,9 +211,7 @@ aoeblk_gdalloc(void *vp) | |||
211 | return; | 211 | return; |
212 | } | 212 | } |
213 | 213 | ||
214 | d->bufpool = mempool_create(MIN_BUFS, | 214 | d->bufpool = mempool_create_slab_pool(MIN_BUFS, buf_pool_cache); |
215 | mempool_alloc_slab, mempool_free_slab, | ||
216 | buf_pool_cache); | ||
217 | if (d->bufpool == NULL) { | 215 | if (d->bufpool == NULL) { |
218 | printk(KERN_ERR "aoe: aoeblk_gdalloc: cannot allocate bufpool " | 216 | printk(KERN_ERR "aoe: aoeblk_gdalloc: cannot allocate bufpool " |
219 | "for %ld.%ld\n", d->aoemajor, d->aoeminor); | 217 | "for %ld.%ld\n", d->aoemajor, d->aoeminor); |