Lines Matching refs:dt
71 unsigned long db, dt, dbdt, rt, rs_left; in drbd_syncer_progress() local
118 dt = (jiffies - mdev->rs_mark_time[i]) / HZ; in drbd_syncer_progress()
119 if (dt > (DRBD_SYNC_MARK_STEP * DRBD_SYNC_MARKS)) in drbd_syncer_progress()
122 if (!dt) in drbd_syncer_progress()
123 dt++; in drbd_syncer_progress()
125 rt = (dt * (rs_left / (db/100+1)))/100; /* seconds */ in drbd_syncer_progress()
130 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()
138 dt = (jiffies - mdev->rs_mark_time[i]) / HZ; in drbd_syncer_progress()
139 if (!dt) in drbd_syncer_progress()
140 dt++; in drbd_syncer_progress()
142 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()
150 dt = (jiffies - mdev->rs_start - mdev->rs_paused) / HZ; in drbd_syncer_progress()
151 if (dt == 0) in drbd_syncer_progress()
152 dt = 1; in drbd_syncer_progress()
154 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()