|
@@ -1818,8 +1818,11 @@ static void ops_complete_reconstruct(void *stripe_head_ref)
|
|
|
struct r5dev *dev = &sh->dev[i];
|
|
struct r5dev *dev = &sh->dev[i];
|
|
|
|
|
|
|
|
if (dev->written || i == pd_idx || i == qd_idx) {
|
|
if (dev->written || i == pd_idx || i == qd_idx) {
|
|
|
- if (!discard && !test_bit(R5_SkipCopy, &dev->flags))
|
|
|
|
|
|
|
+ if (!discard && !test_bit(R5_SkipCopy, &dev->flags)) {
|
|
|
set_bit(R5_UPTODATE, &dev->flags);
|
|
set_bit(R5_UPTODATE, &dev->flags);
|
|
|
|
|
+ if (test_bit(STRIPE_EXPAND_READY, &sh->state))
|
|
|
|
|
+ set_bit(R5_Expanded, &dev->flags);
|
|
|
|
|
+ }
|
|
|
if (fua)
|
|
if (fua)
|
|
|
set_bit(R5_WantFUA, &dev->flags);
|
|
set_bit(R5_WantFUA, &dev->flags);
|
|
|
if (sync)
|
|
if (sync)
|