Lines Matching refs:sector_nr
4083 static sector_t reshape_request(mddev_t *mddev, sector_t sector_nr, int *skipped) in reshape_request() argument
4107 if (sector_nr == 0) { in reshape_request()
4111 sector_nr = raid5_size(mddev, 0, 0) in reshape_request()
4115 sector_nr = conf->reshape_progress; in reshape_request()
4116 sector_div(sector_nr, new_data_disks); in reshape_request()
4117 if (sector_nr) { in reshape_request()
4118 mddev->curr_resync_completed = sector_nr; in reshape_request()
4121 return sector_nr; in reshape_request()
4183 mddev->curr_resync_completed = sector_nr; in reshape_request()
4202 != sector_nr); in reshape_request()
4204 BUG_ON(writepos != sector_nr + reshape_sectors); in reshape_request()
4205 stripe_addr = sector_nr; in reshape_request()
4277 sector_nr += reshape_sectors; in reshape_request()
4278 if ((sector_nr - mddev->curr_resync_completed) * 2 in reshape_request()
4284 mddev->curr_resync_completed = sector_nr; in reshape_request()
4301 static inline sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster) in sync_request() argument
4310 if (sector_nr >= max_sector) { in sync_request()
4332 return reshape_request(mddev, sector_nr, skipped); in sync_request()
4346 sector_t rv = mddev->dev_sectors - sector_nr; in sync_request()
4350 if (!bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, 1) && in sync_request()
4360 bitmap_cond_end_sync(mddev->bitmap, sector_nr); in sync_request()
4362 sh = get_active_stripe(conf, sector_nr, 0, 1, 0); in sync_request()
4364 sh = get_active_stripe(conf, sector_nr, 0, 0, 0); in sync_request()
4378 bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, still_degraded); in sync_request()