Lines Matching refs:chunk_sectors
88 sector_div(sectors, mddev->chunk_sectors); in create_strip_zones()
89 rdev1->sectors = sectors * mddev->chunk_sectors; in create_strip_zones()
135 if ((mddev->chunk_sectors << 9) % blksize) { in create_strip_zones()
138 mddev->chunk_sectors << 9, blksize); in create_strip_zones()
281 sector_div(first_sector, mddev->chunk_sectors); in create_strip_zones()
331 unsigned int chunk_sects = mddev->chunk_sectors; in map_sector()
367 ~(sector_t)(mddev->chunk_sectors-1)); in raid0_size()
392 if (mddev->chunk_sectors == 0) { in raid0_run()
416 blk_queue_max_hw_sectors(mddev->queue, mddev->chunk_sectors); in raid0_run()
417 blk_queue_max_write_same_sectors(mddev->queue, mddev->chunk_sectors); in raid0_run()
418 blk_queue_max_write_zeroes_sectors(mddev->queue, mddev->chunk_sectors); in raid0_run()
421 blk_queue_io_min(mddev->queue, mddev->chunk_sectors << 9); in raid0_run()
423 (mddev->chunk_sectors << 9) * mddev->raid_disks); in raid0_run()
507 stripe_size = zone->nb_dev * mddev->chunk_sectors; in raid0_handle_discard()
516 sector_div(orig_start, mddev->chunk_sectors); in raid0_handle_discard()
521 sector_div(orig_end, mddev->chunk_sectors); in raid0_handle_discard()
527 mddev->chunk_sectors; in raid0_handle_discard()
529 mddev->chunk_sectors; in raid0_handle_discard()
532 mddev->chunk_sectors) + in raid0_handle_discard()
533 first_stripe_index * mddev->chunk_sectors; in raid0_handle_discard()
535 mddev->chunk_sectors) + in raid0_handle_discard()
536 last_stripe_index * mddev->chunk_sectors; in raid0_handle_discard()
548 mddev->chunk_sectors; in raid0_handle_discard()
550 dev_start = first_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()
631 chunk_sects = mddev->chunk_sectors; in raid0_make_request()
652 seq_printf(seq, " %dk chunks", mddev->chunk_sectors / 2); in raid0_status()
691 mddev->new_chunk_sectors = mddev->chunk_sectors; in raid0_takeover_raid45()
733 mddev->new_chunk_sectors = mddev->chunk_sectors; in raid0_takeover_raid10()
777 mddev->chunk_sectors = chunksect; in raid0_takeover_raid1()