Lines Matching refs:max_sectors
1838 sector_t max_sectors; in super_1_rdev_size_change() local
1845 max_sectors = i_size_read(rdev->bdev->bd_inode) >> 9; in super_1_rdev_size_change()
1846 max_sectors -= rdev->data_offset; in super_1_rdev_size_change()
1847 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change()
1848 num_sectors = max_sectors; in super_1_rdev_size_change()
1857 max_sectors = rdev->sectors + sb_start - rdev->sb_start; in super_1_rdev_size_change()
1858 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change()
1859 num_sectors = max_sectors; in super_1_rdev_size_change()
4524 unsigned long long max_sectors, resync; in sync_completed_show() local
4535 max_sectors = mddev->resync_max_sectors; in sync_completed_show()
4537 max_sectors = mddev->dev_sectors; in sync_completed_show()
4540 return sprintf(page, "%llu / %llu\n", resync, max_sectors); in sync_completed_show()
7292 sector_t max_sectors, resync, res; in status_resync() local
7300 max_sectors = mddev->resync_max_sectors; in status_resync()
7302 max_sectors = mddev->dev_sectors; in status_resync()
7308 resync = max_sectors; in status_resync()
7324 WARN_ON(max_sectors == 0); in status_resync()
7332 while ( max_sectors/2 > (1ULL<<(scale+32))) in status_resync()
7336 sector_div(res, (u32)((max_sectors>>scale)+1)); in status_resync()
7358 (unsigned long long) max_sectors/2); in status_resync()
7379 rt = max_sectors - resync; /* number of remaining sectors */ in status_resync()
7827 sector_t max_sectors,j, io_sectors, recovery_done; in md_do_sync() local
7950 max_sectors = mddev->resync_max_sectors; in md_do_sync()
7959 max_sectors = mddev->resync_max_sectors; in md_do_sync()
7962 max_sectors = mddev->dev_sectors; in md_do_sync()
8011 window/2, (unsigned long long)max_sectors/2); in md_do_sync()
8029 while (j < max_sectors) { in md_do_sync()
8037 > (max_sectors >> 4)) || in md_do_sync()
8086 if (j > max_sectors) in md_do_sync()
8088 j = max_sectors; in md_do_sync()
8098 if (last_check + window > io_sectors || j == max_sectors) in md_do_sync()
8161 mddev->pers->sync_request(mddev, max_sectors, &skipped); in md_do_sync()