Home
last modified time | relevance | path

Searched refs:rs_total (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/drivers/block/drbd/
Ddrbd_proc.c41 union drbd_dev_state state, unsigned long *rs_total, in drbd_get_syncer_progress() argument
46 typecheck(unsigned long, device->rs_total); in drbd_get_syncer_progress()
47 *rs_total = device->rs_total; in drbd_get_syncer_progress()
59 if (*bits_left > *rs_total) { in drbd_get_syncer_progress()
63 *bits_left = *rs_total; in drbd_get_syncer_progress()
64 *per_mil_done = *rs_total ? 0 : 1000; in drbd_get_syncer_progress()
75 unsigned int shift = *rs_total > UINT_MAX ? 16 : 10; in drbd_get_syncer_progress()
77 unsigned long total = 1UL + (*rs_total >> shift); in drbd_get_syncer_progress()
93 unsigned long db, dt, dbdt, rt, rs_total, rs_left; in drbd_syncer_progress() local
98 drbd_get_syncer_progress(device, state, &rs_total, &rs_left, &res); in drbd_syncer_progress()
[all …]
Ddrbd_worker.c599 if (device->rs_total == 0) { in make_resync_request()
883 db = device->rs_total; in drbd_resync_finished()
927 if (device->use_csums && device->rs_total) { in drbd_resync_finished()
929 const unsigned long t = device->rs_total; in drbd_resync_finished()
937 Bit2KB(device->rs_total - device->rs_same_csum), in drbd_resync_finished()
938 Bit2KB(device->rs_total)); in drbd_resync_finished()
1012 device->rs_total = 0; in drbd_resync_finished()
1828 device->rs_total = tw; in drbd_start_resync()
1854 (unsigned long) device->rs_total << (BM_BLOCK_SHIFT-10), in drbd_start_resync()
1855 (unsigned long) device->rs_total); in drbd_start_resync()
[all …]
Ddrbd_state.c1229 device->rs_total = drbd_bm_bits(device); in set_ov_position()
1240 if (bit >= device->rs_total) { in set_ov_position()
1242 BM_BIT_TO_SECT(device->rs_total - 1); in set_ov_position()
1243 device->rs_total = 1; in set_ov_position()
1245 device->rs_total -= bit; in set_ov_position()
1248 device->ov_left = device->rs_total; in set_ov_position()
1797 device->rs_total = 0; in after_state_ch()
Ddrbd_int.h882 unsigned long rs_total; member
Ddrbd_nl.c1754 device->rs_total = 0; in drbd_adm_attach()
3773 device->rs_total) || in nla_put_status_info()
Ddrbd_receiver.c2917 device->rs_total = device->ov_left; in receive_DataRequest()
5171 device->rs_total = 0; in drbd_disconnected()
Ddrbd_main.c2022 device->rs_total = in drbd_device_cleanup()