Lines Matching refs:max_sector
3283 sector_t max_sector, nr_sectors; in raid10_sync_request() local
3312 max_sector = mddev->dev_sectors; in raid10_sync_request()
3315 max_sector = mddev->resync_max_sectors; in raid10_sync_request()
3316 if (sector_nr >= max_sector) { in raid10_sync_request()
3335 if (mddev->curr_resync < max_sector) { /* aborted */ in raid10_sync_request()
3378 return (max_sector - sector_nr) + sectors_skipped; in raid10_sync_request()
3381 if (max_sector > mddev->resync_max) in raid10_sync_request()
3382 max_sector = mddev->resync_max; /* Don't do IO beyond here */ in raid10_sync_request()
3388 max_sector > (sector_nr | chunk_mask)) in raid10_sync_request()
3389 max_sector = (sector_nr | chunk_mask) + 1; in raid10_sync_request()
3795 if (sector_nr + max_sync < max_sector) in raid10_sync_request()
3796 max_sector = sector_nr + max_sync; in raid10_sync_request()
3800 if (sector_nr + (len>>9) > max_sector) in raid10_sync_request()
3801 len = (max_sector - sector_nr) << 9; in raid10_sync_request()
3891 if (sector_nr + max_sync < max_sector) in raid10_sync_request()
3892 max_sector = sector_nr + max_sync; in raid10_sync_request()
3894 sectors_skipped += (max_sector - sector_nr); in raid10_sync_request()
3896 sector_nr = max_sector; in raid10_sync_request()