Searched refs:last_stripe_index (Results 1 – 2 of 2) sorted by relevance
455 sector_t first_stripe_index, last_stripe_index; in raid0_handle_discard() local486 last_stripe_index = end; in raid0_handle_discard()487 sector_div(last_stripe_index, stripe_size); in raid0_handle_discard()503 end_disk_index = (int)(end - last_stripe_index * stripe_size) / in raid0_handle_discard()509 end_disk_offset = ((int)(end - last_stripe_index * stripe_size) % in raid0_handle_discard()511 last_stripe_index * mddev->chunk_sectors; in raid0_handle_discard()530 dev_end = (last_stripe_index + 1) * mddev->chunk_sectors; in raid0_handle_discard()532 dev_end = last_stripe_index * mddev->chunk_sectors; in raid0_handle_discard()
1664 sector_t first_stripe_index, last_stripe_index; in raid10_handle_discard() local1753 last_stripe_index = chunk; in raid10_handle_discard()1754 end_disk_index = sector_div(last_stripe_index, geo->raid_disks); in raid10_handle_discard()1756 last_stripe_index *= geo->far_copies; in raid10_handle_discard()1758 (last_stripe_index << geo->chunk_shift); in raid10_handle_discard()1839 dev_end = (last_stripe_index + 1) * mddev->chunk_sectors; in raid10_handle_discard()1841 dev_end = last_stripe_index * mddev->chunk_sectors; in raid10_handle_discard()1884 last_stripe_index += geo->stride >> geo->chunk_shift; in raid10_handle_discard()