Lines Matching refs:v_disks_count

149 		if (na == vol->v_disks_count)  in g_raid_tr_update_state_raid5()
151 else if (na + ns == vol->v_disks_count || in g_raid_tr_update_state_raid5()
152 na + ns + nu == vol->v_disks_count /* XXX: Temporary. */) in g_raid_tr_update_state_raid5()
154 else if (na == vol->v_disks_count - 1 || in g_raid_tr_update_state_raid5()
155 na + ns + nu == vol->v_disks_count) in g_raid_tr_update_state_raid5()
239 ddisks = vol->v_disks_count - pdisks; in g_raid_tr_iostart_raid5_read()
248 pno = (nstripe / (ddisks * protate)) % vol->v_disks_count; in g_raid_tr_iostart_raid5_read()
253 pno += vol->v_disks_count; in g_raid_tr_iostart_raid5_read()
262 no = (pno + pdisks + no) % vol->v_disks_count; in g_raid_tr_iostart_raid5_read()
266 no += imax(0, pno + pdisks - vol->v_disks_count); in g_raid_tr_iostart_raid5_read()
285 no %= vol->v_disks_count; in g_raid_tr_iostart_raid5_read()
287 no = (no + pdisks) % vol->v_disks_count; in g_raid_tr_iostart_raid5_read()
289 no %= vol->v_disks_count; in g_raid_tr_iostart_raid5_read()
296 pno += vol->v_disks_count - 1; in g_raid_tr_iostart_raid5_read()
297 pno %= vol->v_disks_count; in g_raid_tr_iostart_raid5_read()
299 no = (pno + pdisks) % vol->v_disks_count; in g_raid_tr_iostart_raid5_read()
305 if (no >= vol->v_disks_count) { in g_raid_tr_iostart_raid5_read()
306 no -= vol->v_disks_count; in g_raid_tr_iostart_raid5_read()
312 pno += vol->v_disks_count - 1; in g_raid_tr_iostart_raid5_read()
313 pno %= vol->v_disks_count; in g_raid_tr_iostart_raid5_read()
318 no += imax(0, pno + pdisks - vol->v_disks_count); in g_raid_tr_iostart_raid5_read()