* [PATCH] md/raid5: Fix two small bugs in init_stripe().
@ 2012-08-06 1:07 Jianpeng Ma
0 siblings, 0 replies; only message in thread
From: Jianpeng Ma @ 2012-08-06 1:07 UTC (permalink / raw)
To: Neil Brown; +Cc: linux-raid
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().
Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
---
drivers/md/raid5.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index adda94d..8b486b0 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -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;
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-06 1:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-06 1:07 [PATCH] md/raid5: Fix two small bugs in init_stripe() Jianpeng Ma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).