Repository navigation
Commit 6f287ca
md/raid10: reset the 'first' at the end of loop
We need to set "first = 0' at the end of rdev_for_each
loop, so we can get the array's min_offset_diff correctly
otherwise min_offset_diff just means the last rdev's
offset diff.
Suggested-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>1 parent 7471fb7 commit 6f287ca
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3769 | 3769 | | |
3770 | 3770 | | |
3771 | 3771 | | |
| 3772 | + | |
3772 | 3773 | | |
3773 | 3774 | | |
3774 | 3775 | | |
| |||
4172 | 4173 | | |
4173 | 4174 | | |
4174 | 4175 | | |
| 4176 | + | |
4175 | 4177 | | |
4176 | 4178 | | |
4177 | 4179 | | |
| |||
0 commit comments