Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260971
b: refs/heads/master
c: 6ce3284
h: refs/heads/master
i:
  260969: fcd47f4
  260967: 0bc323a
v: v3
  • Loading branch information
Namhyung Kim authored and NeilBrown committed Jul 18, 2011
1 parent ebaa220 commit 5c4833b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c65060ad4274f70048d62e0a86332cd3fd23f28d
refs/heads/master: 6ce328462c1145a217ba1f27b882743be1407759
8 changes: 3 additions & 5 deletions trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -1315,10 +1315,10 @@ static void raid_run_ops(struct stripe_head *sh, unsigned long ops_request)
static int grow_one_stripe(raid5_conf_t *conf)
{
struct stripe_head *sh;
sh = kmem_cache_alloc(conf->slab_cache, GFP_KERNEL);
sh = kmem_cache_zalloc(conf->slab_cache, GFP_KERNEL);
if (!sh)
return 0;
memset(sh, 0, sizeof(*sh) + (conf->pool_size-1)*sizeof(struct r5dev));

sh->raid_conf = conf;
spin_lock_init(&sh->lock);
#ifdef CONFIG_MULTICORE_RAID456
Expand Down Expand Up @@ -1435,12 +1435,10 @@ static int resize_stripes(raid5_conf_t *conf, int newsize)
return -ENOMEM;

for (i = conf->max_nr_stripes; i; i--) {
nsh = kmem_cache_alloc(sc, GFP_KERNEL);
nsh = kmem_cache_zalloc(sc, GFP_KERNEL);
if (!nsh)
break;

memset(nsh, 0, sizeof(*nsh) + (newsize-1)*sizeof(struct r5dev));

nsh->raid_conf = conf;
spin_lock_init(&nsh->lock);
#ifdef CONFIG_MULTICORE_RAID456
Expand Down

0 comments on commit 5c4833b

Please sign in to comment.