Home
last modified time | relevance | path

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

/Linux-v6.6/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.c601 if (device->rs_total == 0) { in make_resync_request()
887 db = device->rs_total; in drbd_resync_finished()
931 if (device->use_csums && device->rs_total) { in drbd_resync_finished()
933 const unsigned long t = device->rs_total; in drbd_resync_finished()
941 Bit2KB(device->rs_total - device->rs_same_csum), in drbd_resync_finished()
942 Bit2KB(device->rs_total)); in drbd_resync_finished()
1016 device->rs_total = 0; in drbd_resync_finished()
1834 device->rs_total = tw; in drbd_start_resync()
1860 (unsigned long) device->rs_total << (BM_BLOCK_SHIFT-10), in drbd_start_resync()
1861 (unsigned long) device->rs_total); in drbd_start_resync()
[all …]
Ddrbd_state.c1231 device->rs_total = drbd_bm_bits(device); in set_ov_position()
1242 if (bit >= device->rs_total) { in set_ov_position()
1244 BM_BIT_TO_SECT(device->rs_total - 1); in set_ov_position()
1245 device->rs_total = 1; in set_ov_position()
1247 device->rs_total -= bit; in set_ov_position()
1250 device->ov_left = device->rs_total; in set_ov_position()
1800 device->rs_total = 0; in after_state_ch()
Ddrbd_int.h816 unsigned long rs_total; member
Ddrbd_nl.c1771 device->rs_total = 0; in drbd_adm_attach()
3796 device->rs_total) || in nla_put_status_info()
Ddrbd_receiver.c2933 device->rs_total = device->ov_left; in receive_DataRequest()
5185 device->rs_total = 0; in drbd_disconnected()
Ddrbd_main.c2034 device->rs_total = in drbd_device_cleanup()