Commit 3a31cf3
raid5: don't duplicate code for different paths in handle_stripe
As we can see, R5_LOCKED is set and s.locked is increased whether
R5_ReWrite is set or not, so move it to common path.
Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Song Liu <songliubraving@fb.com>1 parent 01b5d32 commit 3a31cf3
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4966 | 4966 | | |
4967 | 4967 | | |
4968 | 4968 | | |
4969 | | - | |
4970 | | - | |
4971 | | - | |
| 4969 | + | |
4972 | 4970 | | |
4973 | 4971 | | |
4974 | | - | |
4975 | | - | |
4976 | | - | |
| 4972 | + | |
| 4973 | + | |
4977 | 4974 | | |
4978 | 4975 | | |
4979 | 4976 | | |
| |||
0 commit comments