Lines Matching refs:resync
4822 unsigned long resync, dt, db; in sync_speed_show() local
4825 resync = mddev->curr_mark_cnt - atomic_read(&mddev->recovery_active); in sync_speed_show()
4828 db = resync - mddev->resync_mark_cnt; in sync_speed_show()
4837 unsigned long long max_sectors, resync; in sync_completed_show() local
4852 resync = mddev->curr_resync_completed; in sync_completed_show()
4853 return sprintf(page, "%llu / %llu\n", resync, max_sectors); in sync_completed_show()
7771 sector_t max_sectors, resync, res; in status_resync() local
7783 resync = mddev->curr_resync; in status_resync()
7784 if (resync <= 3) { in status_resync()
7787 resync = max_sectors; in status_resync()
7788 } else if (resync > max_sectors) in status_resync()
7789 resync = max_sectors; in status_resync()
7791 resync -= atomic_read(&mddev->recovery_active); in status_resync()
7793 if (resync == 0) { in status_resync()
7817 if (resync < 3) { in status_resync()
7833 res = (resync>>scale)*1000; in status_resync()
7855 (unsigned long long) resync/2, in status_resync()
7885 rt = max_sectors - resync; /* number of remaining sectors */ in status_resync()