Lines Matching refs:resync
5253 unsigned long resync, dt, db; in sync_speed_show() local
5256 resync = mddev->curr_mark_cnt - atomic_read(&mddev->recovery_active); in sync_speed_show()
5259 db = resync - mddev->resync_mark_cnt; in sync_speed_show()
5268 unsigned long long max_sectors, resync; in sync_completed_show() local
5283 resync = mddev->curr_resync_completed; in sync_completed_show()
5284 return sprintf(page, "%llu / %llu\n", resync, max_sectors); in sync_completed_show()
8262 sector_t max_sectors, resync, res; in status_resync() local
8274 resync = mddev->curr_resync; in status_resync()
8275 if (resync < MD_RESYNC_ACTIVE) { in status_resync()
8278 resync = max_sectors; in status_resync()
8279 } else if (resync > max_sectors) { in status_resync()
8280 resync = max_sectors; in status_resync()
8288 if (resync < res || resync - res < MD_RESYNC_ACTIVE) in status_resync()
8289 resync = MD_RESYNC_ACTIVE; in status_resync()
8291 resync -= res; in status_resync()
8294 if (resync == MD_RESYNC_NONE) { in status_resync()
8318 if (resync < MD_RESYNC_ACTIVE) { in status_resync()
8334 res = (resync>>scale)*1000; in status_resync()
8356 (unsigned long long) resync/2, in status_resync()
8386 rt = max_sectors - resync; /* number of remaining sectors */ in status_resync()