Lines Matching refs:max_sector
2670 sector_t max_sector, nr_sectors; in raid1_sync_request() local
2686 max_sector = mddev->dev_sectors; in raid1_sync_request()
2687 if (sector_nr >= max_sector) { in raid1_sync_request()
2693 if (mddev->curr_resync < max_sector) /* aborted */ in raid1_sync_request()
2714 return max_sector - sector_nr; in raid1_sync_request()
2875 max_sector = sector_nr + min_bad; in raid1_sync_request()
2876 rv = max_sector - sector_nr; in raid1_sync_request()
2882 if (max_sector > mddev->resync_max) in raid1_sync_request()
2883 max_sector = mddev->resync_max; /* Don't do IO beyond here */ in raid1_sync_request()
2884 if (max_sector > sector_nr + good_sectors) in raid1_sync_request()
2885 max_sector = sector_nr + good_sectors; in raid1_sync_request()
2891 if (sector_nr + (len>>9) > max_sector) in raid1_sync_request()
2892 len = (max_sector - sector_nr) << 9; in raid1_sync_request()