Searched refs:disk_index (Results 1 – 2 of 2) sorted by relevance
1869 int disk_index; in r5l_recovery_replay_one_stripe() local1872 for (disk_index = 0; disk_index < sh->disks; disk_index++) { in r5l_recovery_replay_one_stripe()1873 if (!test_bit(R5_Wantwrite, &sh->dev[disk_index].flags)) in r5l_recovery_replay_one_stripe()1875 if (disk_index == sh->qd_idx || disk_index == sh->pd_idx) in r5l_recovery_replay_one_stripe()1888 for (disk_index = 0; disk_index < sh->disks; disk_index++) { in r5l_recovery_replay_one_stripe()1889 if (!test_bit(R5_Wantwrite, &sh->dev[disk_index].flags)) in r5l_recovery_replay_one_stripe()1893 rdev = conf->disks[disk_index].rdev; in r5l_recovery_replay_one_stripe()1897 sh->dev[disk_index].page, REQ_OP_WRITE, in r5l_recovery_replay_one_stripe()1901 rrdev = conf->disks[disk_index].replacement; in r5l_recovery_replay_one_stripe()1905 sh->dev[disk_index].page, REQ_OP_WRITE, in r5l_recovery_replay_one_stripe()
442 static int map_disk_shift(int disk_index, int num_disks, int disk_shift) in map_disk_shift() argument444 return ((disk_index + num_disks - disk_shift) % num_disks); in map_disk_shift()