diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/cfq-iosched.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 64df3fa303b0..baef5fc7cff8 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -2090,13 +2090,11 @@ static void cfq_slab_kill(void) | |||
2090 | 2090 | ||
2091 | static int __init cfq_slab_setup(void) | 2091 | static int __init cfq_slab_setup(void) |
2092 | { | 2092 | { |
2093 | cfq_pool = kmem_cache_create("cfq_pool", sizeof(struct cfq_queue), 0, 0, | 2093 | cfq_pool = KMEM_CACHE(cfq_queue, 0); |
2094 | NULL, NULL); | ||
2095 | if (!cfq_pool) | 2094 | if (!cfq_pool) |
2096 | goto fail; | 2095 | goto fail; |
2097 | 2096 | ||
2098 | cfq_ioc_pool = kmem_cache_create("cfq_ioc_pool", | 2097 | cfq_ioc_pool = KMEM_CACHE(cfq_io_context, 0); |
2099 | sizeof(struct cfq_io_context), 0, 0, NULL, NULL); | ||
2100 | if (!cfq_ioc_pool) | 2098 | if (!cfq_ioc_pool) |
2101 | goto fail; | 2099 | goto fail; |
2102 | 2100 | ||