diff options
author | 2025-01-09 09:51:42 +0800 | |
---|---|---|
committer | 2025-01-13 08:56:10 -0800 | |
commit | 4f0e7d0e03b7b80af84759a9e7cfb0f81ac4adae (patch) | |
tree | 0487d4748e8a2f4287fd42d73bd6e9b574a31a51 /scripts/generate_rust_analyzer.py | |
parent | md/md-bitmap: factor behind write counters out from bitmap_{start/end}write() (diff) | |
download | wireguard-linux-4f0e7d0e03b7b80af84759a9e7cfb0f81ac4adae.tar.xz wireguard-linux-4f0e7d0e03b7b80af84759a9e7cfb0f81ac4adae.zip |
md/md-bitmap: remove the last parameter for bimtap_ops->endwrite()
For the case that IO failed for one rdev, the bit will be mark as NEEDED
in following cases:
1) If badblocks is set and rdev is not faulty;
2) If rdev is faulty;
Case 1) is useless because synchronize data to badblocks make no sense.
Case 2) can be replaced with mddev->degraded.
Also remove R1BIO_Degraded, R10BIO_Degraded and STRIPE_DEGRADED since
case 2) no longer use them.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20250109015145.158868-3-yukuai1@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions