Lines Matching refs:sector_nr
6201 static sector_t reshape_request(struct mddev *mddev, sector_t sector_nr, int *skipped) in reshape_request() argument
6227 if (sector_nr == 0) { in reshape_request()
6231 sector_nr = raid5_size(mddev, 0, 0) in reshape_request()
6236 sector_nr = MaxSector; in reshape_request()
6239 sector_nr = conf->reshape_progress; in reshape_request()
6240 sector_div(sector_nr, new_data_disks); in reshape_request()
6241 if (sector_nr) { in reshape_request()
6242 mddev->curr_resync_completed = sector_nr; in reshape_request()
6245 retn = sector_nr; in reshape_request()
6293 != sector_nr); in reshape_request()
6295 BUG_ON(writepos != sector_nr + reshape_sectors); in reshape_request()
6296 stripe_addr = sector_nr; in reshape_request()
6336 mddev->curr_resync_completed = sector_nr; in reshape_request()
6343 rdev->recovery_offset < sector_nr) in reshape_request()
6344 rdev->recovery_offset = sector_nr; in reshape_request()
6432 sector_nr += reshape_sectors; in reshape_request()
6436 (sector_nr - mddev->curr_resync_completed) * 2 in reshape_request()
6445 mddev->curr_resync_completed = sector_nr; in reshape_request()
6452 rdev->recovery_offset < sector_nr) in reshape_request()
6453 rdev->recovery_offset = sector_nr; in reshape_request()
6472 static inline sector_t raid5_sync_request(struct mddev *mddev, sector_t sector_nr, in raid5_sync_request() argument
6482 if (sector_nr >= max_sector) { in raid5_sync_request()
6504 return reshape_request(mddev, sector_nr, skipped); in raid5_sync_request()
6518 sector_t rv = mddev->dev_sectors - sector_nr; in raid5_sync_request()
6524 !md_bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, 1) && in raid5_sync_request()
6533 md_bitmap_cond_end_sync(mddev->bitmap, sector_nr, false); in raid5_sync_request()
6535 sh = raid5_get_active_stripe(conf, NULL, sector_nr, in raid5_sync_request()
6538 sh = raid5_get_active_stripe(conf, NULL, sector_nr, 0); in raid5_sync_request()
6557 md_bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, still_degraded); in raid5_sync_request()