• Home
  • Raw
  • Download

Lines Matching refs:sector_nr

5753 static sector_t reshape_request(struct mddev *mddev, sector_t sector_nr, int *skipped)  in reshape_request()  argument
5779 if (sector_nr == 0) { in reshape_request()
5783 sector_nr = raid5_size(mddev, 0, 0) in reshape_request()
5788 sector_nr = MaxSector; in reshape_request()
5791 sector_nr = conf->reshape_progress; in reshape_request()
5792 sector_div(sector_nr, new_data_disks); in reshape_request()
5793 if (sector_nr) { in reshape_request()
5794 mddev->curr_resync_completed = sector_nr; in reshape_request()
5797 retn = sector_nr; in reshape_request()
5845 != sector_nr); in reshape_request()
5847 BUG_ON(writepos != sector_nr + reshape_sectors); in reshape_request()
5848 stripe_addr = sector_nr; in reshape_request()
5888 mddev->curr_resync_completed = sector_nr; in reshape_request()
5895 rdev->recovery_offset < sector_nr) in reshape_request()
5896 rdev->recovery_offset = sector_nr; in reshape_request()
5982 sector_nr += reshape_sectors; in reshape_request()
5986 (sector_nr - mddev->curr_resync_completed) * 2 in reshape_request()
5995 mddev->curr_resync_completed = sector_nr; in reshape_request()
6002 rdev->recovery_offset < sector_nr) in reshape_request()
6003 rdev->recovery_offset = sector_nr; in reshape_request()
6022 static inline sector_t raid5_sync_request(struct mddev *mddev, sector_t sector_nr, in raid5_sync_request() argument
6032 if (sector_nr >= max_sector) { in raid5_sync_request()
6054 return reshape_request(mddev, sector_nr, skipped); in raid5_sync_request()
6068 sector_t rv = mddev->dev_sectors - sector_nr; in raid5_sync_request()
6074 !md_bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, 1) && in raid5_sync_request()
6082 md_bitmap_cond_end_sync(mddev->bitmap, sector_nr, false); in raid5_sync_request()
6084 sh = raid5_get_active_stripe(conf, sector_nr, 0, 1, 0); in raid5_sync_request()
6086 sh = raid5_get_active_stripe(conf, sector_nr, 0, 0, 0); in raid5_sync_request()
6105 md_bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, still_degraded); in raid5_sync_request()