Searched refs:rs_total (Results 1 – 7 of 7) sorted by relevance
/linux-4.1.27/drivers/block/drbd/ |
D | drbd_proc.c | 64 union drbd_dev_state state, unsigned long *rs_total, in drbd_get_syncer_progress() argument 69 typecheck(unsigned long, device->rs_total); in drbd_get_syncer_progress() 70 *rs_total = device->rs_total; in drbd_get_syncer_progress() 82 if (*bits_left > *rs_total) { in drbd_get_syncer_progress() 86 *bits_left = *rs_total; in drbd_get_syncer_progress() 87 *per_mil_done = *rs_total ? 0 : 1000; in drbd_get_syncer_progress() 98 unsigned int shift = *rs_total > UINT_MAX ? 16 : 10; in drbd_get_syncer_progress() 100 unsigned long total = 1UL + (*rs_total >> shift); in drbd_get_syncer_progress() 116 unsigned long db, dt, dbdt, rt, rs_total, rs_left; in drbd_syncer_progress() local 121 drbd_get_syncer_progress(device, state, &rs_total, &rs_left, &res); in drbd_syncer_progress() [all …]
|
D | drbd_worker.c | 601 if (device->rs_total == 0) { in make_resync_request() 875 db = device->rs_total; in drbd_resync_finished() 919 if (device->use_csums && device->rs_total) { in drbd_resync_finished() 921 const unsigned long t = device->rs_total; in drbd_resync_finished() 929 Bit2KB(device->rs_total - device->rs_same_csum), in drbd_resync_finished() 930 Bit2KB(device->rs_total)); in drbd_resync_finished() 980 device->rs_total = 0; in drbd_resync_finished() 1751 device->rs_total = tw; in drbd_start_resync() 1778 (unsigned long) device->rs_total << (BM_BLOCK_SHIFT-10), in drbd_start_resync() 1779 (unsigned long) device->rs_total); in drbd_start_resync() [all …]
|
D | drbd_state.c | 945 device->rs_total = drbd_bm_bits(device); in set_ov_position() 956 if (bit >= device->rs_total) { in set_ov_position() 958 BM_BIT_TO_SECT(device->rs_total - 1); in set_ov_position() 959 device->rs_total = 1; in set_ov_position() 961 device->rs_total -= bit; in set_ov_position() 964 device->ov_left = device->rs_total; in set_ov_position() 1341 device->rs_total = 0; in after_state_ch()
|
D | drbd_int.h | 888 unsigned long rs_total; member
|
D | drbd_nl.c | 1501 device->rs_total = 0; in drbd_adm_attach() 3009 if (nla_put_u64(skb, T_bits_rs_total, device->rs_total) || in nla_put_status_info()
|
D | drbd_receiver.c | 2638 device->rs_total = device->ov_left; in receive_DataRequest() 4723 device->rs_total = 0; in drbd_disconnected()
|
D | drbd_main.c | 1986 device->rs_total = in drbd_device_cleanup()
|