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()
379 if (mddev->chunk_sectors == 0) { in raid0_run()
398 blk_queue_max_hw_sectors(mddev->queue, mddev->chunk_sectors); in raid0_run()
399 blk_queue_max_write_same_sectors(mddev->queue, mddev->chunk_sectors); in raid0_run()
400 blk_queue_max_write_zeroes_sectors(mddev->queue, mddev->chunk_sectors); in raid0_run()
403 blk_queue_io_min(mddev->queue, mddev->chunk_sectors << 9); in raid0_run()
405 (mddev->chunk_sectors << 9) * mddev->raid_disks); in raid0_run()
490 stripe_size = zone->nb_dev * mddev->chunk_sectors; in raid0_handle_discard()
499 sector_div(orig_start, mddev->chunk_sectors); in raid0_handle_discard()
504 sector_div(orig_end, mddev->chunk_sectors); in raid0_handle_discard()
510 mddev->chunk_sectors; in raid0_handle_discard()
512 mddev->chunk_sectors; in raid0_handle_discard()
515 mddev->chunk_sectors) + in raid0_handle_discard()
516 first_stripe_index * mddev->chunk_sectors; in raid0_handle_discard()
518 mddev->chunk_sectors) + in raid0_handle_discard()
519 last_stripe_index * mddev->chunk_sectors; in raid0_handle_discard()
532 mddev->chunk_sectors; in raid0_handle_discard()
534 dev_start = first_stripe_index * mddev->chunk_sectors; in raid0_handle_discard()
539 dev_end = (last_stripe_index + 1) * mddev->chunk_sectors; in raid0_handle_discard()
541 dev_end = last_stripe_index * mddev->chunk_sectors; in raid0_handle_discard()
588 chunk_sects = mddev->chunk_sectors; in raid0_make_request()
641 seq_printf(seq, " %dk chunks", mddev->chunk_sectors / 2); in raid0_status()
670 mddev->new_chunk_sectors = mddev->chunk_sectors; in raid0_takeover_raid45()
712 mddev->new_chunk_sectors = mddev->chunk_sectors; in raid0_takeover_raid10()
756 mddev->chunk_sectors = chunksect; in raid0_takeover_raid1()