Searched refs:last_stripe_index (Results 1 – 2 of 2) sorted by relevance
454 sector_t first_stripe_index, last_stripe_index; in raid0_handle_discard() local485 last_stripe_index = end; in raid0_handle_discard()486 sector_div(last_stripe_index, stripe_size); in raid0_handle_discard()502 end_disk_index = (int)(end - last_stripe_index * stripe_size) / in raid0_handle_discard()508 end_disk_offset = ((int)(end - last_stripe_index * stripe_size) % in raid0_handle_discard()510 last_stripe_index * mddev->chunk_sectors; in raid0_handle_discard()529 dev_end = (last_stripe_index + 1) * mddev->chunk_sectors; in raid0_handle_discard()531 dev_end = last_stripe_index * mddev->chunk_sectors; in raid0_handle_discard()
1595 sector_t first_stripe_index, last_stripe_index; in raid10_handle_discard() local1684 last_stripe_index = chunk; in raid10_handle_discard()1685 end_disk_index = sector_div(last_stripe_index, geo->raid_disks); in raid10_handle_discard()1687 last_stripe_index *= geo->far_copies; in raid10_handle_discard()1689 (last_stripe_index << geo->chunk_shift); in raid10_handle_discard()1769 dev_end = (last_stripe_index + 1) * mddev->chunk_sectors; in raid10_handle_discard()1771 dev_end = last_stripe_index * mddev->chunk_sectors; in raid10_handle_discard()1814 last_stripe_index += geo->stride >> geo->chunk_shift; in raid10_handle_discard()