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()
1647 sector_t first_stripe_index, last_stripe_index; in raid10_handle_discard() local1736 last_stripe_index = chunk; in raid10_handle_discard()1737 end_disk_index = sector_div(last_stripe_index, geo->raid_disks); in raid10_handle_discard()1739 last_stripe_index *= geo->far_copies; in raid10_handle_discard()1741 (last_stripe_index << geo->chunk_shift); in raid10_handle_discard()1822 dev_end = (last_stripe_index + 1) * mddev->chunk_sectors; in raid10_handle_discard()1824 dev_end = last_stripe_index * mddev->chunk_sectors; in raid10_handle_discard()1867 last_stripe_index += geo->stride >> geo->chunk_shift; in raid10_handle_discard()