Lines Matching refs:chunk_sectors
1975 : conf->chunk_sectors; in raid5_compute_sector()
2172 : conf->chunk_sectors; in compute_blocknr()
2458 previous ? conf->prev_chunk_sectors : conf->chunk_sectors; in stripe_set_idx()
3832 unsigned int chunk_sectors = mddev->chunk_sectors; in raid5_mergeable_bvec() local
3838 if (mddev->new_chunk_sectors < mddev->chunk_sectors) in raid5_mergeable_bvec()
3839 chunk_sectors = mddev->new_chunk_sectors; in raid5_mergeable_bvec()
3840 max = (chunk_sectors - ((sector & (chunk_sectors - 1)) + bio_sectors)) << 9; in raid5_mergeable_bvec()
3852 unsigned int chunk_sectors = mddev->chunk_sectors; in in_chunk_boundary() local
3855 if (mddev->new_chunk_sectors < mddev->chunk_sectors) in in_chunk_boundary()
3856 chunk_sectors = mddev->new_chunk_sectors; in in_chunk_boundary()
3857 return chunk_sectors >= in in_chunk_boundary()
3858 ((sector & (chunk_sectors - 1)) + bio_sectors); in in_chunk_boundary()
4177 stripe_sectors = conf->chunk_sectors * in make_discard_request()
4183 logical_sector *= conf->chunk_sectors; in make_discard_request()
4184 last_sector *= conf->chunk_sectors; in make_discard_request()
4451 if (mddev->new_chunk_sectors > mddev->chunk_sectors) in reshape_request()
4454 reshape_sectors = mddev->chunk_sectors; in reshape_request()
5009 sectors &= ~((sector_t)mddev->chunk_sectors - 1); in raid5_size()
5231 conf->chunk_sectors = mddev->new_chunk_sectors; in setup_conf()
5241 conf->prev_chunk_sectors = mddev->chunk_sectors; in setup_conf()
5372 sector_div(here_old, mddev->chunk_sectors * in run()
5378 here_old * mddev->chunk_sectors)) { in run()
5390 if (abs(min_offset_diff) >= mddev->chunk_sectors && in run()
5402 here_old * mddev->chunk_sectors) in run()
5404 here_old * mddev->chunk_sectors + (-min_offset_diff))) { in run()
5417 BUG_ON(mddev->chunk_sectors != mddev->new_chunk_sectors); in run()
5499 mddev->dev_sectors &= ~(mddev->chunk_sectors - 1); in run()
5562 ((mddev->chunk_sectors << 9) / PAGE_SIZE); in run()
5571 chunk_size = mddev->chunk_sectors << 9; in run()
5654 mddev->chunk_sectors / 2, mddev->layout); in status()
5860 sectors &= ~((sector_t)mddev->chunk_sectors - 1); in raid5_resize()
5894 if (((mddev->chunk_sectors << 9) / STRIPE_SIZE) * 4 in check_stripe_cache()
5900 ((max(mddev->chunk_sectors, mddev->new_chunk_sectors) << 9) in check_stripe_cache()
5913 mddev->new_chunk_sectors == mddev->chunk_sectors) in check_reshape()
5980 conf->prev_chunk_sectors = conf->chunk_sectors; in raid5_start_reshape()
5981 conf->chunk_sectors = mddev->new_chunk_sectors; in raid5_start_reshape()
6082 int stripe = data_disks * ((conf->chunk_sectors << 9) in end_reshape()
6120 mddev->chunk_sectors = conf->chunk_sectors; in raid5_finish_reshape()
6180 mddev->new_chunk_sectors = mddev->chunk_sectors; in raid45_takeover_raid0()
6282 conf->chunk_sectors = new_chunk ; in raid5_check_reshape()
6283 mddev->chunk_sectors = new_chunk; in raid5_check_reshape()