aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c4
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