• Home
  • Raw
  • Download

Lines Matching refs:chunk_sectors

826 	if (!sector_div(tmp_sec, conf->chunk_sectors))  in stripe_add_to_batch_list()
2924 : conf->chunk_sectors; in raid5_compute_sector()
3120 : conf->chunk_sectors; in raid5_compute_blocknr()
3459 if (first + conf->chunk_sectors * (count - 1) != last) in add_stripe_bio()
3534 previous ? conf->prev_chunk_sectors : conf->chunk_sectors; in stripe_set_idx()
5307 unsigned int chunk_sectors; in in_chunk_boundary() local
5312 chunk_sectors = min(conf->chunk_sectors, conf->prev_chunk_sectors); in in_chunk_boundary()
5313 return chunk_sectors >= in in_chunk_boundary()
5314 ((sector & (chunk_sectors - 1)) + bio_sectors); in in_chunk_boundary()
5484 unsigned chunk_sects = mddev->chunk_sectors; in chunk_aligned_read()
5692 stripe_sectors = conf->chunk_sectors * in make_discard_request()
5698 logical_sector *= conf->chunk_sectors; in make_discard_request()
5699 last_sector *= conf->chunk_sectors; in make_discard_request()
5992 reshape_sectors = max(conf->chunk_sectors, conf->prev_chunk_sectors); in reshape_request()
7017 sectors &= ~((sector_t)conf->chunk_sectors - 1); in raid5_size()
7041 max(conf->chunk_sectors, in alloc_scratch_buffer()
7113 conf->scribble_sectors = max(conf->chunk_sectors, in raid5_alloc_percpu()
7296 conf->chunk_sectors = mddev->new_chunk_sectors; in setup_conf()
7342 conf->prev_chunk_sectors = mddev->chunk_sectors; in setup_conf()
7345 conf->prev_chunk_sectors = conf->chunk_sectors; in setup_conf()
7352 ((mddev->chunk_sectors << 9) / RAID5_STRIPE_SIZE(conf)) * 4, in setup_conf()
7430 blk_queue_io_opt(conf->mddev->queue, (conf->chunk_sectors << 9) * in raid5_set_io_opt()
7497 int chunk_sectors; in raid5_run() local
7520 chunk_sectors = max(mddev->chunk_sectors, mddev->new_chunk_sectors); in raid5_run()
7522 if (sector_div(here_new, chunk_sectors * new_data_disks)) { in raid5_run()
7527 reshape_offset = here_new * chunk_sectors; in raid5_run()
7530 sector_div(here_old, chunk_sectors * (old_disks-max_degraded)); in raid5_run()
7541 if (abs(min_offset_diff) >= mddev->chunk_sectors && in raid5_run()
7550 ? (here_new * chunk_sectors + min_offset_diff <= in raid5_run()
7551 here_old * chunk_sectors) in raid5_run()
7552 : (here_new * chunk_sectors >= in raid5_run()
7553 here_old * chunk_sectors + (-min_offset_diff))) { in raid5_run()
7564 BUG_ON(mddev->chunk_sectors != mddev->new_chunk_sectors); in raid5_run()
7662 mddev->dev_sectors &= ~(mddev->chunk_sectors - 1); in raid5_run()
7717 ((mddev->chunk_sectors << 9) / PAGE_SIZE); in raid5_run()
7719 chunk_size = mddev->chunk_sectors << 9; in raid5_run()
7799 conf->chunk_sectors / 2, mddev->layout); in raid5_status()
8056 sectors &= ~((sector_t)conf->chunk_sectors - 1); in raid5_resize()
8088 if (((mddev->chunk_sectors << 9) / RAID5_STRIPE_SIZE(conf)) * 4 in check_stripe_cache()
8094 ((max(mddev->chunk_sectors, mddev->new_chunk_sectors) << 9) in check_stripe_cache()
8109 mddev->new_chunk_sectors == mddev->chunk_sectors) in check_reshape()
8129 if (mddev->new_chunk_sectors > mddev->chunk_sectors || in check_reshape()
8135 mddev->chunk_sectors) in check_reshape()
8189 conf->prev_chunk_sectors = conf->chunk_sectors; in raid5_start_reshape()
8190 conf->chunk_sectors = mddev->new_chunk_sectors; in raid5_start_reshape()
8265 conf->chunk_sectors = conf->prev_chunk_sectors; in raid5_start_reshape()
8337 mddev->chunk_sectors = conf->chunk_sectors; in raid5_finish_reshape()
8393 mddev->new_chunk_sectors = mddev->chunk_sectors; in raid45_takeover_raid0()
8498 conf->chunk_sectors = new_chunk ; in raid5_check_reshape()
8499 mddev->chunk_sectors = new_chunk; in raid5_check_reshape()