Home
last modified time | relevance | path

Searched refs:disk_index (Results 1 – 2 of 2) sorted by relevance

/drivers/md/
Draid5-cache.c1874 int disk_index; in r5l_recovery_replay_one_stripe() local
1877 for (disk_index = 0; disk_index < sh->disks; disk_index++) { in r5l_recovery_replay_one_stripe()
1878 if (!test_bit(R5_Wantwrite, &sh->dev[disk_index].flags)) in r5l_recovery_replay_one_stripe()
1880 if (disk_index == sh->qd_idx || disk_index == sh->pd_idx) in r5l_recovery_replay_one_stripe()
1893 for (disk_index = 0; disk_index < sh->disks; disk_index++) { in r5l_recovery_replay_one_stripe()
1894 if (!test_bit(R5_Wantwrite, &sh->dev[disk_index].flags)) in r5l_recovery_replay_one_stripe()
1899 rdev = rcu_dereference(conf->disks[disk_index].rdev); in r5l_recovery_replay_one_stripe()
1904 sh->dev[disk_index].page, REQ_OP_WRITE, 0, in r5l_recovery_replay_one_stripe()
1909 rrdev = rcu_dereference(conf->disks[disk_index].replacement); in r5l_recovery_replay_one_stripe()
1914 sh->dev[disk_index].page, REQ_OP_WRITE, 0, in r5l_recovery_replay_one_stripe()
Draid0.c468 static int map_disk_shift(int disk_index, int num_disks, int disk_shift) in map_disk_shift() argument
470 return ((disk_index + num_disks - disk_shift) % num_disks); in map_disk_shift()