Home
last modified time | relevance | path

Searched refs:sector_nr (Results 1 – 4 of 4) sorted by relevance

/linux-2.6.39/drivers/md/
Draid10.c1766 static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster) in sync_request() argument
1788 if (sector_nr >= max_sector) { in sync_request()
1821 return (max_sector - sector_nr) + sectors_skipped; in sync_request()
1831 max_sector > (sector_nr | conf->chunk_mask)) in sync_request()
1832 max_sector = (sector_nr | conf->chunk_mask) + 1; in sync_request()
1867 sector_t sect = raid10_find_virt(conf, sector_nr, i); in sync_request()
1976 bitmap_cond_end_sync(mddev->bitmap, sector_nr); in sync_request()
1978 if (!bitmap_start_sync(mddev->bitmap, sector_nr, in sync_request()
1992 conf->next_resync = sector_nr; in sync_request()
1995 r10_bio->sector = sector_nr; in sync_request()
[all …]
Draid1.c1623 static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster) in sync_request() argument
1641 if (sector_nr >= max_sector) { in sync_request()
1663 return max_sector - sector_nr; in sync_request()
1668 if (!bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, 1) && in sync_request()
1682 bitmap_cond_end_sync(mddev->bitmap, sector_nr); in sync_request()
1686 conf->next_resync = sector_nr; in sync_request()
1699 r1_bio->sector = sector_nr; in sync_request()
1743 bio->bi_sector = sector_nr + rdev->data_offset; in sync_request()
1760 sector_t rv = max_sector - sector_nr; in sync_request()
1773 if (sector_nr + (len>>9) > max_sector) in sync_request()
[all …]
Draid5.c4083 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()
[all …]
Dmd.h365 sector_t (*sync_request)(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster);