Lines Matching refs:sector_nr
4141 static sector_t reshape_request(mddev_t *mddev, sector_t sector_nr, int *skipped)
4165 if (sector_nr == 0) {
4169 sector_nr = raid5_size(mddev, 0, 0)
4173 sector_nr = conf->reshape_progress;
4174 sector_div(sector_nr, new_data_disks);
4175 if (sector_nr) {
4176 mddev->curr_resync_completed = sector_nr;
4179 return sector_nr;
4260 != sector_nr);
4262 BUG_ON(writepos != sector_nr + reshape_sectors);
4263 stripe_addr = sector_nr;
4335 sector_nr += reshape_sectors;
4336 if ((sector_nr - mddev->curr_resync_completed) * 2
4358 static inline sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster)
4367 if (sector_nr >= max_sector) {
4390 return reshape_request(mddev, sector_nr, skipped);
4404 sector_t rv = mddev->dev_sectors - sector_nr;
4408 if (!bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, 1) &&
4418 bitmap_cond_end_sync(mddev->bitmap, sector_nr);
4420 sh = get_active_stripe(conf, sector_nr, 0, 1, 0);
4422 sh = get_active_stripe(conf, sector_nr, 0, 0, 0);
4436 bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, still_degraded);