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/message/i2o | |
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/message/i2o')
-rw-r--r-- | drivers/message/i2o/i2o_block.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/message/i2o/i2o_block.c b/drivers/message/i2o/i2o_block.c index b09fb6307153..7d4c5497785b 100644 --- a/drivers/message/i2o/i2o_block.c +++ b/drivers/message/i2o/i2o_block.c | |||
@@ -1179,10 +1179,9 @@ static int __init i2o_block_init(void) | |||
1179 | goto exit; | 1179 | goto exit; |
1180 | } | 1180 | } |
1181 | 1181 | ||
1182 | i2o_blk_req_pool.pool = mempool_create(I2O_BLOCK_REQ_MEMPOOL_SIZE, | 1182 | i2o_blk_req_pool.pool = |
1183 | mempool_alloc_slab, | 1183 | mempool_create_slab_pool(I2O_BLOCK_REQ_MEMPOOL_SIZE, |
1184 | mempool_free_slab, | 1184 | i2o_blk_req_pool.slab); |
1185 | i2o_blk_req_pool.slab); | ||
1186 | if (!i2o_blk_req_pool.pool) { | 1185 | if (!i2o_blk_req_pool.pool) { |
1187 | osm_err("can't init request mempool\n"); | 1186 | osm_err("can't init request mempool\n"); |
1188 | rc = -ENOMEM; | 1187 | rc = -ENOMEM; |