Lines Matching refs:sector_nr
3517 static sector_t reshape_request(mddev_t *mddev, sector_t sector_nr, int *skipped) in reshape_request() argument
3539 if (sector_nr == 0 && in reshape_request()
3542 sector_nr = conf->expand_progress; in reshape_request()
3543 sector_div(sector_nr, new_data_disks); in reshape_request()
3545 return sector_nr; in reshape_request()
3582 pd_idx = stripe_to_pdidx(sector_nr+i, conf, conf->raid_disks); in reshape_request()
3583 sh = get_active_stripe(conf, sector_nr+i, in reshape_request()
3613 conf->expand_progress = (sector_nr + i) * new_data_disks; in reshape_request()
3621 raid5_compute_sector(sector_nr*(new_data_disks), in reshape_request()
3625 raid5_compute_sector((sector_nr+conf->chunk_size/512) in reshape_request()
3644 sector_nr += conf->chunk_size>>9; in reshape_request()
3645 if (sector_nr >= mddev->resync_max) { in reshape_request()
3664 static inline sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster) in sync_request() argument
3675 if (sector_nr >= max_sector) { in sync_request()
3694 return reshape_request(mddev, sector_nr, skipped); in sync_request()
3708 sector_t rv = (mddev->size << 1) - sector_nr; in sync_request()
3712 if (!bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, 1) && in sync_request()
3722 bitmap_cond_end_sync(mddev->bitmap, sector_nr); in sync_request()
3724 pd_idx = stripe_to_pdidx(sector_nr, conf, raid_disks); in sync_request()
3725 sh = get_active_stripe(conf, sector_nr, raid_disks, pd_idx, 1); in sync_request()
3727 sh = get_active_stripe(conf, sector_nr, raid_disks, pd_idx, 0); in sync_request()
3741 bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, still_degraded); in sync_request()