/kernel/linux/linux-5.10/drivers/block/drbd/ |
H A D | drbd_proc.c | 41 union drbd_dev_state state, unsigned long *rs_total, in drbd_get_syncer_progress() 46 typecheck(unsigned long, device->rs_total); in drbd_get_syncer_progress() 47 *rs_total = device->rs_total; in drbd_get_syncer_progress() 49 /* note: both rs_total and rs_left are in bits, i.e. in in drbd_get_syncer_progress() 59 if (*bits_left > *rs_total) { in drbd_get_syncer_progress() 61 * between state change and reset of 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_MA in drbd_get_syncer_progress() 40 drbd_get_syncer_progress(struct drbd_device *device, union drbd_dev_state state, unsigned long *rs_total, unsigned long *bits_left, unsigned int *per_mil_done) drbd_get_syncer_progress() argument 93 unsigned long db, dt, dbdt, rt, rs_total, rs_left; drbd_syncer_progress() local [all...] |
H A D | drbd_worker.c | 604 if (device->rs_total == 0) { in make_resync_request() 888 db = device->rs_total; in drbd_resync_finished() 932 if (device->use_csums && device->rs_total) { in drbd_resync_finished() 934 const unsigned long t = device->rs_total; in drbd_resync_finished() 942 Bit2KB(device->rs_total - device->rs_same_csum), in drbd_resync_finished() 943 Bit2KB(device->rs_total)); in drbd_resync_finished() 1017 device->rs_total = 0; in drbd_resync_finished() 1829 device->rs_total = tw; in drbd_start_resync() 1855 (unsigned long) device->rs_total << (BM_BLOCK_SHIFT-10), in drbd_start_resync() 1856 (unsigned long) device->rs_total); in drbd_start_resync() [all...] |
H A D | drbd_state.c | 1229 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() 1796 device->rs_total = 0; in after_state_ch()
|
H A D | drbd_int.h | 886 unsigned long rs_total; member
|
H A D | drbd_nl.c | 1832 device->rs_total = 0; in drbd_adm_attach() 3852 device->rs_total) || in nla_put_status_info()
|
H A D | drbd_receiver.c | 2970 device->rs_total = device->ov_left; in receive_DataRequest() 5233 device->rs_total = 0; in drbd_disconnected()
|
H A D | drbd_main.c | 2064 device->rs_total = in drbd_device_cleanup()
|
/kernel/linux/linux-6.6/drivers/block/drbd/ |
H A D | drbd_proc.c | 41 union drbd_dev_state state, unsigned long *rs_total, in drbd_get_syncer_progress() 46 typecheck(unsigned long, device->rs_total); in drbd_get_syncer_progress() 47 *rs_total = device->rs_total; in drbd_get_syncer_progress() 49 /* note: both rs_total and rs_left are in bits, i.e. in in drbd_get_syncer_progress() 59 if (*bits_left > *rs_total) { in drbd_get_syncer_progress() 61 * between state change and reset of 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_MA in drbd_get_syncer_progress() 40 drbd_get_syncer_progress(struct drbd_device *device, union drbd_dev_state state, unsigned long *rs_total, unsigned long *bits_left, unsigned int *per_mil_done) drbd_get_syncer_progress() argument 93 unsigned long db, dt, dbdt, rt, rs_total, rs_left; drbd_syncer_progress() local [all...] |
H A D | drbd_worker.c | 601 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...] |
H A D | drbd_state.c | 1231 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()
|
H A D | drbd_int.h | 816 unsigned long rs_total; member
|
H A D | drbd_nl.c | 1771 device->rs_total = 0; in drbd_adm_attach() 3796 device->rs_total) || in nla_put_status_info()
|
H A D | drbd_receiver.c | 2933 device->rs_total = device->ov_left; in receive_DataRequest() 5185 device->rs_total = 0; in drbd_disconnected()
|
H A D | drbd_main.c | 2034 device->rs_total = in drbd_device_cleanup()
|