Lines Matching refs:max_sectors
2266 sector_t max_sectors;
2273 max_sectors = bdev_nr_sectors(rdev->bdev) - rdev->data_offset;
2274 if (!num_sectors || num_sectors > max_sectors)
2275 num_sectors = max_sectors;
2293 max_sectors = sb_start - bm_space - 4*2;
2295 if (!num_sectors || num_sectors > max_sectors)
2296 num_sectors = max_sectors;
5196 unsigned long long max_sectors, resync;
5207 max_sectors = mddev->resync_max_sectors;
5209 max_sectors = mddev->dev_sectors;
5212 return sprintf(page, "%llu / %llu\n", resync, max_sectors);
8199 sector_t max_sectors, resync, res;
8207 max_sectors = mddev->resync_max_sectors;
8209 max_sectors = mddev->dev_sectors;
8215 resync = max_sectors;
8216 } else if (resync > max_sectors) {
8217 resync = max_sectors;
8260 WARN_ON(max_sectors == 0);
8262 * in a sector_t, and (max_sectors>>scale) will fit in a
8268 while ( max_sectors/2 > (1ULL<<(scale+32)))
8272 sector_div(res, (u32)((max_sectors>>scale)+1));
8294 (unsigned long long) max_sectors/2);
8323 rt = max_sectors - resync; /* number of remaining sectors */
8841 sector_t max_sectors,j, io_sectors, recovery_done;
8967 max_sectors = mddev->resync_max_sectors;
8976 max_sectors = mddev->resync_max_sectors;
8987 max_sectors = mddev->dev_sectors;
9034 window/2, (unsigned long long)max_sectors/2);
9051 while (j < max_sectors) {
9059 > (max_sectors >> 4)) ||
9108 if (j > max_sectors)
9110 j = max_sectors;
9120 if (last_check + window > io_sectors || j == max_sectors)
9183 mddev->pers->sync_request(mddev, max_sectors, &skipped);