Searched refs:sect_in (Results 1 – 1 of 1) sorted by relevance
477 static int drbd_rs_controller(struct drbd_device *device, unsigned int sect_in) in drbd_rs_controller() argument494 if (device->rs_in_flight + sect_in == 0) { /* At start of resync */ in drbd_rs_controller()498 sect_in * dc->c_delay_target * HZ / (SLEEP_TIME * 10); in drbd_rs_controller()512 req_sect = sect_in + curr_corr; in drbd_rs_controller()531 unsigned int sect_in; /* Number of sectors that came in since the last turn */ in drbd_rs_number_requests() local534 sect_in = atomic_xchg(&device->rs_sect_in, 0); in drbd_rs_number_requests()535 device->rs_in_flight -= sect_in; in drbd_rs_number_requests()540 number = drbd_rs_controller(device, sect_in) >> (BM_BLOCK_SHIFT - 9); in drbd_rs_number_requests()