Home
last modified time | relevance | path

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

/drivers/md/
Draid0.c480 sector_t first_stripe_index, last_stripe_index; in raid0_handle_discard() local
511 last_stripe_index = end; in raid0_handle_discard()
512 sector_div(last_stripe_index, stripe_size); in raid0_handle_discard()
528 end_disk_index = (int)(end - last_stripe_index * stripe_size) / in raid0_handle_discard()
534 end_disk_offset = ((int)(end - last_stripe_index * stripe_size) % in raid0_handle_discard()
536 last_stripe_index * mddev->chunk_sectors; in raid0_handle_discard()
555 dev_end = (last_stripe_index + 1) * mddev->chunk_sectors; in raid0_handle_discard()
557 dev_end = last_stripe_index * mddev->chunk_sectors; in raid0_handle_discard()
Draid10.c1660 sector_t first_stripe_index, last_stripe_index; in raid10_handle_discard() local
1749 last_stripe_index = chunk; in raid10_handle_discard()
1750 end_disk_index = sector_div(last_stripe_index, geo->raid_disks); in raid10_handle_discard()
1752 last_stripe_index *= geo->far_copies; in raid10_handle_discard()
1754 (last_stripe_index << geo->chunk_shift); in raid10_handle_discard()
1835 dev_end = (last_stripe_index + 1) * mddev->chunk_sectors; in raid10_handle_discard()
1837 dev_end = last_stripe_index * mddev->chunk_sectors; in raid10_handle_discard()
1878 last_stripe_index += geo->stride >> geo->chunk_shift; in raid10_handle_discard()