Skip to contentSkip to conversation

md/raid5: Fix two small bugs in init_stripe().

PATCH New Jianpeng Ma 1 participant 1 message Aug 6, 2012 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 md/raid5: Fix two small bugs in init_stripe().

There are two small bugs in func init_stripe():
1:pr_debug print error sector
2:Don't call remove_hash() because it called in get_free_stripe().

---
 drivers/md/raid5.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/md/raid5.c +1 -2
index adda94d..8b486b0 100644
@@ -329,9 +329,8 @@ static void init_stripe(struct stripe_head *sh, sector_t sector, int previous)
 	BUG_ON(stripe_operations_active(sh));
 
 	pr_debug("init_stripe called, stripe %llu\n",
-		(unsigned long long)sh->sector);
+		(unsigned long long)sector);
 
-	remove_hash(sh);
 
 	sh->generation = conf->generation - previous;
 	sh->disks = previous ? conf->previous_raid_disks : conf->raid_disks;
Signature · 1 line
1.7.9.5