diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/raid5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index d247429ee5ef..54a1ad5eef42 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -3071,7 +3071,7 @@ static sector_t reshape_request(mddev_t *mddev, sector_t sector_nr, int *skipped | |||
3071 | release_stripe(sh); | 3071 | release_stripe(sh); |
3072 | } | 3072 | } |
3073 | spin_lock_irq(&conf->device_lock); | 3073 | spin_lock_irq(&conf->device_lock); |
3074 | conf->expand_progress = (sector_nr + i)*(conf->raid_disks-1); | 3074 | conf->expand_progress = (sector_nr + i) * new_data_disks; |
3075 | spin_unlock_irq(&conf->device_lock); | 3075 | spin_unlock_irq(&conf->device_lock); |
3076 | /* Ok, those stripe are ready. We can start scheduling | 3076 | /* Ok, those stripe are ready. We can start scheduling |
3077 | * reads on the source stripes. | 3077 | * reads on the source stripes. |