Lines Matching refs:faila
533 int fa = last->faila; in rbio_can_merge()
535 int cur_fa = cur->faila; in rbio_can_merge()
538 if (last->faila >= last->failb) { in rbio_can_merge()
540 fb = last->faila; in rbio_can_merge()
543 if (cur->faila >= cur->failb) { in rbio_can_merge()
545 cur_fb = cur->faila; in rbio_can_merge()
953 rbio->faila = -1; in alloc_rbio()
1083 if (rbio->faila >= 0 || rbio->failb >= 0) { in validate_rbio_for_rmw()
1084 BUG_ON(rbio->faila == rbio->real_stripes - 1); in validate_rbio_for_rmw()
1409 if (rbio->faila == failed || rbio->failb == failed) in fail_rbio_index()
1412 if (rbio->faila == -1) { in fail_rbio_index()
1414 rbio->faila = failed; in fail_rbio_index()
1865 int faila = -1, failb = -1; in __raid_recover_end_io() local
1889 faila = rbio->faila; in __raid_recover_end_io()
1925 (stripe == faila || stripe == failb)) { in __raid_recover_end_io()
1940 if (faila == rbio->nr_data) { in __raid_recover_end_io()
1957 if (faila > failb) in __raid_recover_end_io()
1958 swap(faila, failb); in __raid_recover_end_io()
1967 if (rbio->bioc->raid_map[faila] == in __raid_recover_end_io()
1981 sectorsize, faila, pointers); in __raid_recover_end_io()
1984 sectorsize, faila, failb, in __raid_recover_end_io()
1994 memcpy(pointers[faila], pointers[rbio->nr_data], sectorsize); in __raid_recover_end_io()
1997 p = pointers[faila]; in __raid_recover_end_io()
1998 for (stripe = faila; stripe < rbio->nr_data - 1; stripe++) in __raid_recover_end_io()
2013 if (faila != -1) { in __raid_recover_end_io()
2014 sector = rbio_stripe_sector(rbio, faila, i); in __raid_recover_end_io()
2063 rbio->faila = -1; in __raid_recover_end_io()
2130 if (rbio->faila == stripe || rbio->failb == stripe) { in __raid56_parity_recover()
2211 rbio->faila = find_logical_bio_stripe(rbio, bio); in raid56_parity_recover()
2212 if (rbio->faila == -1) { in raid56_parity_recover()
2235 if (rbio->failb <= rbio->faila) in raid56_parity_recover()
2550 if (rbio->faila >= 0 || rbio->failb >= 0) { in validate_rbio_for_parity_scrub()
2553 if (is_data_stripe(rbio, rbio->faila)) in validate_rbio_for_parity_scrub()
2555 else if (is_parity_stripe(rbio->faila)) in validate_rbio_for_parity_scrub()
2556 failp = rbio->faila; in validate_rbio_for_parity_scrub()
2745 rbio->faila = find_logical_bio_stripe(rbio, bio); in raid56_alloc_missing_rbio()
2746 if (rbio->faila == -1) { in raid56_alloc_missing_rbio()