Lines Matching refs:resync
5487 unsigned long resync, dt, db; in sync_speed_show() local
5490 resync = mddev->curr_mark_cnt - atomic_read(&mddev->recovery_active); in sync_speed_show()
5493 db = resync - mddev->resync_mark_cnt; in sync_speed_show()
5502 unsigned long long max_sectors, resync; in sync_completed_show() local
5517 resync = mddev->curr_resync_completed; in sync_completed_show()
5518 return sprintf(page, "%llu / %llu\n", resync, max_sectors); in sync_completed_show()
8646 sector_t max_sectors, resync, res; in status_resync() local
8658 resync = mddev->curr_resync; in status_resync()
8659 if (resync < MD_RESYNC_ACTIVE) { in status_resync()
8662 resync = max_sectors; in status_resync()
8663 } else if (resync > max_sectors) { in status_resync()
8664 resync = max_sectors; in status_resync()
8672 if (resync < res || resync - res < MD_RESYNC_ACTIVE) in status_resync()
8673 resync = MD_RESYNC_ACTIVE; in status_resync()
8675 resync -= res; in status_resync()
8678 if (resync == MD_RESYNC_NONE) { in status_resync()
8702 if (resync < MD_RESYNC_ACTIVE) { in status_resync()
8718 res = (resync>>scale)*1000; in status_resync()
8740 (unsigned long long) resync/2, in status_resync()
8770 rt = max_sectors - resync; /* number of remaining sectors */ in status_resync()