Lines Matching refs:resync
5181 unsigned long resync, dt, db; in sync_speed_show() local
5184 resync = mddev->curr_mark_cnt - atomic_read(&mddev->recovery_active); in sync_speed_show()
5187 db = resync - mddev->resync_mark_cnt; in sync_speed_show()
5196 unsigned long long max_sectors, resync; in sync_completed_show() local
5211 resync = mddev->curr_resync_completed; in sync_completed_show()
5212 return sprintf(page, "%llu / %llu\n", resync, max_sectors); in sync_completed_show()
8178 sector_t max_sectors, resync, res; in status_resync() local
8190 resync = mddev->curr_resync; in status_resync()
8191 if (resync < MD_RESYNC_ACTIVE) { in status_resync()
8194 resync = max_sectors; in status_resync()
8195 } else if (resync > max_sectors) { in status_resync()
8196 resync = max_sectors; in status_resync()
8204 if (resync < res || resync - res < MD_RESYNC_ACTIVE) in status_resync()
8205 resync = MD_RESYNC_ACTIVE; in status_resync()
8207 resync -= res; in status_resync()
8210 if (resync == MD_RESYNC_NONE) { in status_resync()
8234 if (resync < MD_RESYNC_ACTIVE) { in status_resync()
8250 res = (resync>>scale)*1000; in status_resync()
8272 (unsigned long long) resync/2, in status_resync()
8302 rt = max_sectors - resync; /* number of remaining sectors */ in status_resync()