• Home
  • Raw
  • Download

Lines Matching refs:qd_idx

147 	if (sh->qd_idx == sh->disks - 1)  in raid6_d0()
150 return sh->qd_idx + 1; in raid6_d0()
172 if (idx == sh->qd_idx) in raid6_idx_to_slot()
966 int qd_idx = sh->qd_idx; in ops_run_compute6_1() local
991 if (target == qd_idx) { in ops_run_compute6_1()
1003 if (i == target || i == qd_idx) in ops_run_compute6_1()
1077 int qd_idx = sh->qd_idx; in ops_run_compute6_2() local
1080 if (target == qd_idx) in ops_run_compute6_2()
1087 if (i == data_target || i == qd_idx) in ops_run_compute6_2()
1209 int qd_idx = sh->qd_idx; in ops_complete_reconstruct() local
1225 if (dev->written || i == pd_idx || i == qd_idx) { in ops_complete_reconstruct()
1324 if (sh->pd_idx == i || sh->qd_idx == i) in ops_run_reconstruct6()
1332 set_bit(R5_Discard, &sh->dev[sh->qd_idx].flags); in ops_run_reconstruct6()
1362 int qd_idx = sh->qd_idx; in ops_run_check_p() local
1377 if (i == pd_idx || i == qd_idx) in ops_run_check_p()
1969 int pd_idx, qd_idx; in raid5_compute_sector() local
1997 pd_idx = qd_idx = -1; in raid5_compute_sector()
2038 qd_idx = pd_idx + 1; in raid5_compute_sector()
2041 qd_idx = 0; in raid5_compute_sector()
2047 qd_idx = pd_idx + 1; in raid5_compute_sector()
2050 qd_idx = 0; in raid5_compute_sector()
2056 qd_idx = (pd_idx + 1) % raid_disks; in raid5_compute_sector()
2061 qd_idx = (pd_idx + 1) % raid_disks; in raid5_compute_sector()
2067 qd_idx = 1; in raid5_compute_sector()
2072 qd_idx = data_disks + 1; in raid5_compute_sector()
2080 qd_idx = pd_idx + 1; in raid5_compute_sector()
2083 qd_idx = 0; in raid5_compute_sector()
2096 qd_idx = pd_idx + 1; in raid5_compute_sector()
2099 qd_idx = 0; in raid5_compute_sector()
2108 qd_idx = (pd_idx + raid_disks - 1) % raid_disks; in raid5_compute_sector()
2118 qd_idx = raid_disks - 1; in raid5_compute_sector()
2125 qd_idx = raid_disks - 1; in raid5_compute_sector()
2131 qd_idx = raid_disks - 1; in raid5_compute_sector()
2137 qd_idx = raid_disks - 1; in raid5_compute_sector()
2143 qd_idx = raid_disks - 1; in raid5_compute_sector()
2154 sh->qd_idx = qd_idx; in raid5_compute_sector()
2213 if (i == sh->qd_idx) in compute_blocknr()
2278 || sh2.qd_idx != sh->qd_idx) { in compute_blocknr()
2362 int qd_idx = sh->qd_idx; in schedule_reconstruction() local
2363 struct r5dev *dev = &sh->dev[qd_idx]; in schedule_reconstruction()
2797 if (sh->qd_idx >= 0) { in handle_stripe_clean_event()
2798 clear_bit(R5_Discard, &sh->dev[sh->qd_idx].flags); in handle_stripe_clean_event()
2799 clear_bit(R5_UPTODATE, &sh->dev[sh->qd_idx].flags); in handle_stripe_clean_event()
2897 i != sh->pd_idx && i != sh->qd_idx && in handle_stripe_dirtying()
3032 int qd_idx = sh->qd_idx; in handle_parity_checks6() local
3115 dev = &sh->dev[qd_idx]; in handle_parity_checks6()
3173 &sh->dev[qd_idx].flags); in handle_parity_checks6()
3174 *target = qd_idx; in handle_parity_checks6()
3200 if (i != sh->pd_idx && i != sh->qd_idx) { in handle_stripe_expansion()
3232 j != sh2->qd_idx && in handle_stripe_expansion()
3473 atomic_read(&sh->count), sh->pd_idx, sh->qd_idx, in handle_stripe()
3530 BUG_ON(sh->qd_idx >= 0 && in handle_stripe()
3531 !test_bit(R5_UPTODATE, &sh->dev[sh->qd_idx].flags) && in handle_stripe()
3532 !test_bit(R5_Discard, &sh->dev[sh->qd_idx].flags)); in handle_stripe()
3536 (i == sh->pd_idx || i == sh->qd_idx || in handle_stripe()
3543 ((i == sh->pd_idx || i == sh->qd_idx) && in handle_stripe()
3559 qdev = &sh->dev[sh->qd_idx]; in handle_stripe()
3560 s.q_failed = (s.failed >= 1 && s.failed_num[0] == sh->qd_idx) in handle_stripe()
3561 || (s.failed >= 2 && s.failed_num[1] == sh->qd_idx) in handle_stripe()
4203 if (d == sh->pd_idx || d == sh->qd_idx) in make_discard_request()
4216 if (d == sh->pd_idx || d == sh->qd_idx) in make_discard_request()
4555 j == sh->qd_idx) in reshape_request()