Lines Matching defs:failed
182 static int fail_rbio_index(struct btrfs_raid_bio *rbio, int failed);
1142 * after we've reconstructed the failed stripes
1367 * stripe has failed. This expects the bio to correspond to a physical disk,
1394 * failed. This looks up based on logical block numbers.
1414 static int fail_rbio_index(struct btrfs_raid_bio *rbio, int failed)
1422 if (rbio->faila == failed || rbio->failb == failed)
1427 rbio->faila = failed;
1431 rbio->failb = failed;
1449 int failed = find_bio_stripe(rbio, bio);
1451 if (failed < 0)
1454 return fail_rbio_index(rbio, failed);
1499 * but if there are any failed stripes we'll reconstruct
1899 * Just the P stripe has failed, without
1917 /* if the q stripe is failed, do a pstripe reconstruction
1919 * If both the q stripe and the P stripe are failed, we're
1950 /* Copy parity block into failed block to start with */
1964 * failed stripes as uptodate. This way finish_rmw will
2097 * Read everything that hasn't failed. However this time we will
2165 * so we assume the bio they send down corresponds to a failed part
2529 * parity scrub will be finished after we've reconstructed the failed
2610 * but if there are any failed stripes we'll reconstruct