Searched refs:sector_nr (Results 1 – 3 of 3) sorted by relevance
/drivers/md/ |
D | raid10.c | 1679 static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster) in sync_request() argument 1701 if (sector_nr >= max_sector) { in sync_request() 1734 return (max_sector - sector_nr) + sectors_skipped; in sync_request() 1744 max_sector > (sector_nr | conf->chunk_mask)) in sync_request() 1745 max_sector = (sector_nr | conf->chunk_mask) + 1; in sync_request() 1780 sector_t sect = raid10_find_virt(conf, sector_nr, i); in sync_request() 1888 bitmap_cond_end_sync(mddev->bitmap, sector_nr); in sync_request() 1890 if (!bitmap_start_sync(mddev->bitmap, sector_nr, in sync_request() 1904 conf->next_resync = sector_nr; in sync_request() 1907 r10_bio->sector = sector_nr; in sync_request() [all …]
|
D | raid1.c | 1704 static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster) in sync_request() argument 1727 if (sector_nr >= max_sector) { in sync_request() 1749 return max_sector - sector_nr; in sync_request() 1754 if (!bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, 1) && in sync_request() 1768 bitmap_cond_end_sync(mddev->bitmap, sector_nr); in sync_request() 1771 conf->next_resync = sector_nr; in sync_request() 1785 r1_bio->sector = sector_nr; in sync_request() 1827 bio->bi_sector = sector_nr + rdev->data_offset; in sync_request() 1844 sector_t rv = max_sector - sector_nr; in sync_request() 1857 if (sector_nr + (len>>9) > max_sector) in sync_request() [all …]
|
D | raid5.c | 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() [all …]
|