diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-07-19 21:11:58 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-07-19 21:11:58 -0400 |
commit | 20c2df83d25c6a95affe6157a4c9cac4cf5ffaac (patch) | |
tree | 415c4453d2b17a50abe7a3e515177e1fa337bd67 /drivers/md | |
parent | 64fb98fc40738ae1a98bcea9ca3145b89fb71524 (diff) |
mm: Remove slab destructors from kmem_cache_create().
Slab destructors were no longer supported after Christoph's
c59def9f222d44bb7e2f0a559f2906191a0862d7 change. They've been
BUGs for both slab and slub, and slob never supported them
either.
This rips out support for the dtor pointer from kmem_cache_create()
completely and fixes up every single callsite in the kernel (there were
about 224, not including the slab allocator definitions themselves,
or the documentation references).
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/raid5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 0b66afef2d82..c8dfdb302916 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -951,7 +951,7 @@ static int grow_stripes(raid5_conf_t *conf, int num) | |||
951 | conf->active_name = 0; | 951 | conf->active_name = 0; |
952 | sc = kmem_cache_create(conf->cache_name[conf->active_name], | 952 | sc = kmem_cache_create(conf->cache_name[conf->active_name], |
953 | sizeof(struct stripe_head)+(devs-1)*sizeof(struct r5dev), | 953 | sizeof(struct stripe_head)+(devs-1)*sizeof(struct r5dev), |
954 | 0, 0, NULL, NULL); | 954 | 0, 0, NULL); |
955 | if (!sc) | 955 | if (!sc) |
956 | return 1; | 956 | return 1; |
957 | conf->slab_cache = sc; | 957 | conf->slab_cache = sc; |
@@ -1003,7 +1003,7 @@ static int resize_stripes(raid5_conf_t *conf, int newsize) | |||
1003 | /* Step 1 */ | 1003 | /* Step 1 */ |
1004 | sc = kmem_cache_create(conf->cache_name[1-conf->active_name], | 1004 | sc = kmem_cache_create(conf->cache_name[1-conf->active_name], |
1005 | sizeof(struct stripe_head)+(newsize-1)*sizeof(struct r5dev), | 1005 | sizeof(struct stripe_head)+(newsize-1)*sizeof(struct r5dev), |
1006 | 0, 0, NULL, NULL); | 1006 | 0, 0, NULL); |
1007 | if (!sc) | 1007 | if (!sc) |
1008 | return -ENOMEM; | 1008 | return -ENOMEM; |
1009 | 1009 | ||